xapian-core
1.4.27
|
Handle a string range. More...
#include <queryparser.h>
Public Member Functions | |
StringValueRangeProcessor (Xapian::valueno slot_) | |
Constructor. More... | |
StringValueRangeProcessor (Xapian::valueno slot_, const std::string &str_, bool prefix_=true) | |
Constructor. More... | |
Xapian::valueno | operator() (std::string &begin, std::string &end) |
Check for a valid string range. More... | |
Public Member Functions inherited from Xapian::ValueRangeProcessor | |
ValueRangeProcessor () | |
Default constructor. More... | |
virtual | ~ValueRangeProcessor () |
Destructor. More... | |
ValueRangeProcessor * | release () |
Start reference counting this object. More... | |
const ValueRangeProcessor * | release () const |
Start reference counting this object. More... | |
Public Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
opt_intrusive_base (const opt_intrusive_base &) | |
opt_intrusive_base & | operator= (const opt_intrusive_base &) |
opt_intrusive_base () | |
Construct object which is initially not reference counted. More... | |
virtual | ~opt_intrusive_base () |
void | ref () const |
void | unref () const |
Protected Attributes | |
Xapian::valueno | valno |
The value slot to process. More... | |
bool | prefix |
Whether to look for str as a prefix or suffix. More... | |
std::string | str |
The prefix (or suffix if prefix==false) string to look for. More... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::opt_intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Member Functions inherited from Xapian::Internal::opt_intrusive_base | |
void | release () const |
Start reference counting. More... | |
Handle a string range.
The end points can be any strings.
Definition at line 466 of file queryparser.h.
|
inlineexplicit |
Constructor.
slot_ | The value number to return from operator(). |
Definition at line 482 of file queryparser.h.
|
inline |
Constructor.
slot_ | The value number to return from operator(). |
str_ | A string to look for to recognise values as belonging to this range. |
prefix_ | Flag specifying whether to check for str_ as a prefix or a suffix. |
Definition at line 493 of file queryparser.h.
|
virtual |
Check for a valid string range.
[in,out] | begin | The start of the range as specified in the query string by the user. This parameter is a non-const reference so the ValueRangeProcessor can modify it to return the value to start the range with. |
[in,out] | end | The end of the range. This is also a non-const reference so it can be modified. |
Implements Xapian::ValueRangeProcessor.
Reimplemented in Xapian::NumberValueRangeProcessor, and Xapian::DateValueRangeProcessor.
Definition at line 36 of file valuerangeproc.cc.
References Xapian::BAD_VALUENO, endswith(), startswith(), and Xapian::Internal::str().
|
protected |
Whether to look for str as a prefix or suffix.
Definition at line 472 of file queryparser.h.
|
protected |
The prefix (or suffix if prefix==false) string to look for.
Definition at line 475 of file queryparser.h.
|
protected |
The value slot to process.
Definition at line 469 of file queryparser.h.