xapian-core  2.0.0
Public Member Functions | Public Attributes | Private Attributes | List of all members
State Class Reference

Parser State shared between the lexer and the parser. More...

+ Collaboration diagram for State:

Public Member Functions

 State (QueryParser::Internal *qpi_, unsigned flags_)
 
string stem_term (const string &term)
 
void add_to_stoplist (const Term *term)
 
void add_to_unstem (const string &term, const string &unstemmed)
 
Termrange (const string &a, const string &b)
 
Query::op default_op () const
 
bool is_stopword (const Term *term) const
 
Database get_database () const
 
const Stopperget_stopper () const
 
QueryParser::stop_strategy get_stopper_strategy () const
 
size_t stoplist_size () const
 
void stoplist_resize (size_t s)
 
Xapian::termcount get_max_wildcard_expansion () const
 
int get_max_wildcard_type () const
 
unsigned get_min_wildcard_prefix_len () const
 
Xapian::termcount get_max_partial_expansion () const
 
int get_max_partial_type () const
 
unsigned get_min_partial_prefix_len () const
 
Xapian::termcount get_max_fuzzy_expansion () const
 
int get_max_fuzzy_type () const
 

Public Attributes

Query query
 
const char * error = NULL
 
unsigned flags
 
unsigned int should_stem_mask
 
Query::op effective_default_op
 

Private Attributes

QueryParser::Internalqpi
 

Detailed Description

Parser State shared between the lexer and the parser.

Definition at line 241 of file queryparser_internal.cc.

Constructor & Destructor Documentation

◆ State()

State::State ( QueryParser::Internal qpi_,
unsigned  flags_ 
)
inline

Member Function Documentation

◆ add_to_stoplist()

void State::add_to_stoplist ( const Term term)
inline

Definition at line 274 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stoplist, and term.

Referenced by TermGroup::as_group().

◆ add_to_unstem()

void State::add_to_unstem ( const string &  term,
const string &  unstemmed 
)
inline

Definition at line 278 of file queryparser_internal.cc.

References term, and Xapian::QueryParser::Internal::unstem.

◆ default_op()

Query::op State::default_op ( ) const
inline

Definition at line 309 of file queryparser_internal.cc.

Referenced by TermGroup::as_group().

◆ get_database()

Database State::get_database ( ) const
inline

◆ get_max_fuzzy_expansion()

Xapian::termcount State::get_max_fuzzy_expansion ( ) const
inline

◆ get_max_fuzzy_type()

int State::get_max_fuzzy_type ( ) const
inline

◆ get_max_partial_expansion()

Xapian::termcount State::get_max_partial_expansion ( ) const
inline

◆ get_max_partial_type()

int State::get_max_partial_type ( ) const
inline

◆ get_max_wildcard_expansion()

Xapian::termcount State::get_max_wildcard_expansion ( ) const
inline

◆ get_max_wildcard_type()

int State::get_max_wildcard_type ( ) const
inline

◆ get_min_partial_prefix_len()

unsigned State::get_min_partial_prefix_len ( ) const
inline

◆ get_min_wildcard_prefix_len()

unsigned State::get_min_wildcard_prefix_len ( ) const
inline

◆ get_stopper()

const Stopper* State::get_stopper ( ) const
inline

Definition at line 321 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stopper.

Referenced by TermGroup::as_group().

◆ get_stopper_strategy()

QueryParser::stop_strategy State::get_stopper_strategy ( ) const
inline

Definition at line 325 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stop_mode.

Referenced by TermGroup::as_group().

◆ is_stopword()

bool State::is_stopword ( const Term term) const
inline

Definition at line 313 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stopper, and term.

◆ range()

Term* State::range ( const string &  a,
const string &  b 
)
inline

◆ stem_term()

string State::stem_term ( const string &  term)
inline

Definition at line 270 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stemmer, and term.

◆ stoplist_resize()

void State::stoplist_resize ( size_t  s)
inline

Definition at line 333 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stoplist.

Referenced by TermGroup::as_group().

◆ stoplist_size()

size_t State::stoplist_size ( ) const
inline

Definition at line 329 of file queryparser_internal.cc.

References Xapian::QueryParser::Internal::stoplist.

Referenced by TermGroup::as_group().

Member Data Documentation

◆ effective_default_op

Query::op State::effective_default_op

Definition at line 253 of file queryparser_internal.cc.

◆ error

const char* State::error = NULL

Definition at line 246 of file queryparser_internal.cc.

Referenced by Xapian::QueryParser::Internal::parse_query().

◆ flags

unsigned State::flags

◆ qpi

QueryParser::Internal* State::qpi
private

Definition at line 242 of file queryparser_internal.cc.

◆ query

Query State::query

Definition at line 245 of file queryparser_internal.cc.

Referenced by Xapian::QueryParser::Internal::parse_query().

◆ should_stem_mask

unsigned int State::should_stem_mask
Initial value:
=
@ LOWERCASE_LETTER
Letter, lowercase (Ll)
Definition: unicode.h:231
@ MODIFIER_LETTER
Letter, modifier (Lm)
Definition: unicode.h:233
@ OTHER_LETTER
Letter, other (Lo)
Definition: unicode.h:234
@ TITLECASE_LETTER
Letter, titlecase (Lt)
Definition: unicode.h:232

Definition at line 248 of file queryparser_internal.cc.

Referenced by should_stem().


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