xapian-core  1.4.21
CJK Namespace Reference


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)

Function Documentation

◆ codepoint_is_cjk()

bool CJK::codepoint_is_cjk ( unsigned  codepoint)

◆ get_cjk()

void CJK::get_cjk ( Xapian::Utf8Iterator it)

◆ is_cjk_enabled()

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().