
Public Member Functions | |
| StringValueRangeProcessor (Xapian::valueno valno_) | |
| Constructor. | |
| StringValueRangeProcessor (Xapian::valueno valno_, const std::string &str_, bool prefix_=true) | |
| Constructor. | |
| Xapian::valueno | operator() (std::string &, std::string &) |
| Check for a valid range of this type. | |
The end points can be any strings.
| Xapian::StringValueRangeProcessor::StringValueRangeProcessor | ( | Xapian::valueno | valno_ | ) | [inline] |
Constructor.
| valno_ | The value number to return from operator(). |
| Xapian::StringValueRangeProcessor::StringValueRangeProcessor | ( | Xapian::valueno | valno_, | |
| const std::string & | str_, | |||
| bool | prefix_ = true | |||
| ) | [inline] |
Constructor.
| valno_ | 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. |
| Xapian::valueno Xapian::StringValueRangeProcessor::operator() | ( | std::string & | , | |
| std::string & | ||||
| ) | [virtual] |
Check for a valid range of this type.
If no prefix or suffix is specified, then this always returns the value slot specified at construction time.
If a prefix or suffix is specified, this is checked for first, and it it doesn't match, this method returns Xapian::BAD_VALUENO.
Implements Xapian::ValueRangeProcessor.
Reimplemented in Xapian::DateValueRangeProcessor, and Xapian::NumberValueRangeProcessor.