40 Stem::Stem(
const Stem & o) : internal(o.internal) { }
142 if (!
internal.get() || word.empty())
return word;
143 return internal->operator()(word);
149 string desc =
"Xapian::Stem(";
150 if (
internal.get()) {
151 desc +=
internal->get_description();
InvalidArgumentError indicates an invalid parameter value was passed to the API.
Class representing a stemming algorithm implementation.
Class representing a stemming algorithm.
Stem()
Construct a Xapian::Stem object which doesn't change terms.
std::string operator()(const std::string &word) const
Stem a word.
Stem & operator=(const Stem &o)
Assignment.
std::string get_description() const
Return a string describing this object.
Xapian::Internal::intrusive_ptr< StemImplementation > internal
Hierarchy of classes which Xapian can throw as exceptions.
int keyword2(const unsigned char *p, const char *s, size_t len)
2 byte offset variant.
Efficient keyword to enum lookup.
The Xapian namespace contains public interfaces for the Xapian library.
static StemImplementation * stem_internal_factory(const std::string &language, bool fallback)
Map string to language code.
static const unsigned char tab[]
Base class for implementations of stemming algorithms.