Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Xapian::Stem Class Reference

This class provides an interface to the stemming algorithms. More...

#include <stem.h>

Collaboration diagram for Xapian::Stem:

Collaboration graph
[legend]
List of all members.

Public Methods

 Stem ()
 Create a stemmer object which leaves words unchanged. More...

 Stem (const std::string &language)
 Create a new stemmer object. More...

 ~Stem ()
 Standard destructor. More...

 Stem (const Stem &)
 Copying is allowed. More...

void operator= (const Stem &)
 Assignment is allowed. More...

std::string stem_word (const std::string &word) const
 Stem a word. More...

std::string get_description () const
 Returns a string representing the omstem object. More...


Static Public Methods

std::string get_available_languages ()
 Return a list of available languages. More...


Public Attributes

Xapian::Internal::RefCntPtr<
Internal > 
internal

Detailed Description

This class provides an interface to the stemming algorithms.


Constructor & Destructor Documentation

Xapian::Stem::Stem  
 

Create a stemmer object which leaves words unchanged.

Xapian::Stem::Stem const std::string &    language [explicit]
 

Create a new stemmer object.

Parameters:
language  a string specifying the language being used. This can either be the english name of the language, or the two letter ISO 639 (version 1) language code.
Exceptions:
Xapian::InvalidArgumentError  will be thrown if an unknown language is supplied.

Xapian::Stem::~Stem  
 

Standard destructor.

Xapian::Stem::Stem const Stem &   
 

Copying is allowed.


Member Function Documentation

std::string Xapian::Stem::get_available_languages   [static]
 

Return a list of available languages.

The list is returned as a space-separated string. A Xapian::Stem object is not required for this operation.

std::string Xapian::Stem::get_description   const
 

Returns a string representing the omstem object.

Introspection method.

void Xapian::Stem::operator= const Stem &   
 

Assignment is allowed.

std::string Xapian::Stem::stem_word const std::string &    word const
 

Stem a word.

Parameters:
word  the word to stem.
Returns:
a stemmed version of the word.


The documentation for this class was generated from the following file:
Documentation for Xapian (version 0.7.5).
Generated on 26 Nov 2003 by Doxygen 1.2.15.