xapian-core  2.0.0
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Xapian::Internal::Snowball::Lovins Class Reference

#include <lovins.h>

+ Inheritance diagram for Xapian::Internal::Snowball::Lovins:
+ Collaboration diagram for Xapian::Internal::Snowball::Lovins:

Classes

struct  SN_local
 

Public Member Functions

 Lovins ()
 
 ~Lovins ()
 
std::string operator() (const std::string &word) override
 Stem the specified word. More...
 
bool use_proper_noun_heuristic () const override
 Should QueryParser suppress stemming for capitalised words? More...
 
std::string get_description () const override
 Return a string describing this object. More...
 
- Public Member Functions inherited from Xapian::StemImplementation
 StemImplementation ()
 Default constructor. More...
 
virtual ~StemImplementation ()
 Virtual destructor. More...
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Member Functions

void close_env ()
 

Static Private Member Functions

static int stem (struct SN_env *z)
 

Private Attributes

SN_local zlocal = {}
 

Additional Inherited Members

- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 

Detailed Description

Definition at line 10 of file lovins.h.

Constructor & Destructor Documentation

◆ Lovins()

Xapian::Internal::Snowball::Lovins::Lovins ( )
inline

◆ ~Lovins()

Xapian::Internal::Snowball::Lovins::~Lovins ( )
inline

Definition at line 32 of file lovins.h.

References close_env().

Member Function Documentation

◆ close_env()

void Xapian::Internal::Snowball::Lovins::close_env ( )
inlineprivate

Definition at line 19 of file lovins.h.

References lose_s(), SN_env::p, Xapian::Internal::Snowball::Lovins::SN_local::z, and zlocal.

Referenced by ~Lovins().

◆ get_description()

std::string Xapian::Internal::Snowball::Lovins::get_description ( ) const
inlineoverridevirtual

Return a string describing this object.

Implements Xapian::StemImplementation.

Definition at line 49 of file lovins.h.

◆ operator()()

std::string Xapian::Internal::Snowball::Lovins::operator() ( const std::string &  word)
inlineoverridevirtual

Stem the specified word.

Implements Xapian::StemImplementation.

Definition at line 36 of file lovins.h.

References SN_env::c, SN_env::l, SN_env::p, replace_s(), SIZE, stem(), Xapian::Internal::Snowball::Lovins::SN_local::z, and zlocal.

◆ stem()

int Xapian::Internal::Snowball::Lovins::stem ( struct SN_env z)
staticprivate

Definition at line 1729 of file lovins.cc.

References SN_env::c, SN_env::l, SN_env::lb, r_endings(), r_respell(), and r_undouble().

Referenced by operator()().

◆ use_proper_noun_heuristic()

bool Xapian::Internal::Snowball::Lovins::use_proper_noun_heuristic ( ) const
inlineoverridevirtual

Should QueryParser suppress stemming for capitalised words?

See QueryParser::feature_flag value FLAG_NO_PROPER_NOUN_HEURISTIC for details.

The default implementation of this method returns false.

Since
Xapian 2.0.0.

Reimplemented from Xapian::StemImplementation.

Definition at line 45 of file lovins.h.

Member Data Documentation

◆ zlocal

SN_local Xapian::Internal::Snowball::Lovins::zlocal = {}
private

Definition at line 17 of file lovins.h.

Referenced by close_env(), Lovins(), and operator()().


The documentation for this class was generated from the following files: