xapian-core
1.4.22
|
Functions | |
bool | is_cjk_enabled () |
Should we use the CJK n-gram code? More... | |
bool | codepoint_is_cjk (unsigned codepoint) |
void | get_cjk (Xapian::Utf8Iterator &it) |
bool CJK::codepoint_is_cjk | ( | unsigned | codepoint | ) |
Definition at line 71 of file cjk-tokenizer.cc.
Referenced by get_cjk(), CJKTokenIterator::init(), CJKTokenIterator::operator++(), Xapian::QueryParser::Internal::parse_term(), and Xapian::parse_terms().
void CJK::get_cjk | ( | Xapian::Utf8Iterator & | it | ) |
Definition at line 86 of file cjk-tokenizer.cc.
References codepoint_is_cjk(), and Xapian::Unicode::is_wordchar().
Referenced by Xapian::QueryParser::Internal::parse_term().
bool CJK::is_cjk_enabled | ( | ) |
Should we use the CJK n-gram code?
The first time this is called it reads the environment variable XAPIAN_CJK_NGRAM and returns true if it is set to a non-empty value. Subsequent calls cache and return the same value.
Definition at line 41 of file cjk-tokenizer.cc.
Referenced by Xapian::TermGenerator::Internal::index_text(), Xapian::QueryParser::Internal::parse_query(), and Xapian::MSet::Internal::snippet().