xapian-core  1.4.21
Functions
Xapian::Unicode::Internal Namespace Reference

Functions

int get_character_info (unsigned ch)
 Extract information about a Unicode character. More...
 
int get_case_type (int info)
 
category get_category (int info)
 
int get_delta (int info)
 

Function Documentation

◆ get_case_type()

int Xapian::Unicode::Internal::get_case_type ( int  info)
inlineprivate

Extract how to convert the case of a Unicode character from its info.

Definition at line 266 of file unicode.h.

Referenced by Xapian::Unicode::tolower(), and Xapian::Unicode::toupper().

◆ get_category()

category Xapian::Unicode::Internal::get_category ( int  info)
inlineprivate

◆ get_character_info()

int Xapian::Unicode::Internal::get_character_info ( unsigned  ch)
private

Extract information about a Unicode character.

Extract the information about a character from the Unicode character tables.

Characters outside of the Unicode range (i.e. ch >= 0x110000) are treated as UNASSIGNED with no case variants.

This function extracts the information about a character from the Unicode character tables.

Definition at line 2286 of file unicode-data.cc.

References groupMap, groups, OFFSET_BITS, pageMap, rare, and Xapian::Unicode::UNASSIGNED.

Referenced by Xapian::Unicode::get_category(), Xapian::Unicode::tolower(), and Xapian::Unicode::toupper().

◆ get_delta()

int Xapian::Unicode::Internal::get_delta ( int  info)
inlineprivate

Extract the delta to use for case conversion of a character from its info.

Definition at line 278 of file unicode.h.

References Xapian::Unicode::nonascii_to_utf8(), and XAPIAN_VISIBILITY_DEFAULT.

Referenced by Xapian::Unicode::tolower(), and Xapian::Unicode::toupper().