#include <queryparser.h>


Public Member Functions | |
| StringValueRangeProcessor (Xapian::valueno slot_) | |
| Constructor. | |
| StringValueRangeProcessor (Xapian::valueno slot_, const std::string &str_, bool prefix_=true) | |
| Constructor. | |
| Xapian::valueno | operator() (std::string &begin, std::string &end) |
| Check for a valid string range. | |
Protected Attributes | |
| Xapian::valueno | valno |
Private Attributes | |
| bool | prefix |
| std::string | str |
The end points can be any strings.
Definition at line 112 of file queryparser.h.
| Xapian::StringValueRangeProcessor::StringValueRangeProcessor | ( | Xapian::valueno | slot_ | ) | [inline] |
Constructor.
| slot_ | The value number to return from operator(). |
Definition at line 125 of file queryparser.h.
| Xapian::StringValueRangeProcessor::StringValueRangeProcessor | ( | Xapian::valueno | slot_, | |
| const std::string & | str_, | |||
| bool | prefix_ = true | |||
| ) | [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 136 of file queryparser.h.
| Xapian::valueno Xapian::StringValueRangeProcessor::operator() | ( | std::string & | begin, | |
| std::string & | end | |||
| ) | [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::DateValueRangeProcessor, and Xapian::NumberValueRangeProcessor.
Definition at line 37 of file valuerangeproc.cc.
References Xapian::BAD_VALUENO, endswith(), prefix, startswith(), str, and valno.
bool Xapian::StringValueRangeProcessor::prefix [private] |
std::string Xapian::StringValueRangeProcessor::str [private] |
Definition at line 114 of file queryparser.h.
Referenced by Xapian::NumberValueRangeProcessor::operator()(), Xapian::DateValueRangeProcessor::operator()(), and operator()().