#include <stem.h>

Public Member Functions | |
| Stem (const Stem &o) | |
| Copy constructor. | |
| void | operator= (const Stem &o) |
| Assignment. | |
| Stem () | |
| Construct a Xapian::Stem object which doesn't change terms. | |
| Stem (const std::string &language) | |
| Construct a Xapian::Stem object for a particular language. | |
| Stem (StemImplementation *p) | |
| Construct a Xapian::Stem object with a user-provided stemming algorithm. | |
| ~Stem () | |
| Destructor. | |
| std::string | operator() (const std::string &word) const |
| Stem a word. | |
| std::string | get_description () const |
| Return a string describing this object. | |
Static Public Member Functions | |
| static std::string | get_available_languages () |
| Return a list of available languages. | |
Private Attributes | |
| Xapian::Internal::RefCntPtr < StemImplementation > | internal |
Definition at line 47 of file stem.h.
| Xapian::Stem::Stem | ( | ) |
Construct a Xapian::Stem object which doesn't change terms.
Equivalent to Stem("none").
| Xapian::Stem::Stem | ( | const std::string & | language | ) | [explicit] |
Construct a Xapian::Stem object for a particular language.
| language | Either the English name for the language or the two letter ISO639 code. |
| Xapian::InvalidArgumentError | is thrown if language isn't recognised. |
| Xapian::Stem::Stem | ( | StemImplementation * | p | ) | [explicit] |
Construct a Xapian::Stem object with a user-provided stemming algorithm.
You can subclass Xapian::StemImplementation to implement your own stemming algorithm (or to wrap a third-party algorithm) and then wrap your implementation in a Xapian::Stem object to pass to the Xapian API.
| p | The user-subclassed StemImplementation object. This is reference counted, and so will be automatically deleted by the Xapian::Stem wrapper when no longer required. |
| string Xapian::Stem::get_available_languages | ( | ) | [static] |
Return a list of available languages.
Each stemmer is only included once in the list (not once for each alias). The name included is the English name of the language.
The list is returned as a string, with language names separated by spaces. This is a static method, so a Xapian::Stem object is not required for this operation.
Definition at line 200 of file stem.cc.
References LANGSTRING.
Referenced by DEFINE_TESTCASE(), and main().
| string Xapian::Stem::get_description | ( | ) | const |
Return a string describing this object.
Definition at line 187 of file stem.cc.
Referenced by DEFINE_TESTCASE().
| string Xapian::Stem::operator() | ( | const std::string & | word | ) | const |
| void Xapian::Stem::operator= | ( | const Stem & | o | ) |
For internal use only.
Reference counted internals.
Definition at line 50 of file stem.h.
Referenced by Xapian::TermGenerator::Internal::index_text(), and operator=().