22 #ifndef XAPIAN_INCLUDED_STEM_H
23 #define XAPIAN_INCLUDED_STEM_H
25 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
26 # error Never use <xapian/stem.h> directly; include <xapian.h> instead.
55 virtual std::string
operator()(
const std::string & word) = 0;
73 #ifdef XAPIAN_MOVE_SEMANTICS
167 std::string operator()(
const std::string &word)
const;
170 bool is_none()
const {
return !
internal.get(); }
173 std::string get_description()
const;
Base class for objects managed by intrusive_ptr.
A smart pointer that uses intrusive reference counting.
Class representing a stemming algorithm implementation.
void operator=(const StemImplementation &)
Don't allow assignment.
StemImplementation()
Default constructor.
virtual std::string get_description() const =0
Return a string describing this object.
virtual std::string operator()(const std::string &word)=0
Stem the specified word.
StemImplementation(const StemImplementation &)
Don't allow copying.
Class representing a stemming algorithm.
static std::string get_available_languages()
Return a list of available languages.
bool is_none() const
Return true if this is a no-op stemmer.
Mechanism for accessing a struct of constant information.
const struct constinfo * get_constinfo_()
The Xapian namespace contains public interfaces for the Xapian library.
unsigned stemmer_name_len
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT