:: com :: sun :: star :: i18n ::

constants group TransliterationType
Description
Bitmask transliteration types used with XTransliteration::getType() and XTransliteration::getAvailableModules() methods.

Non-IGNORE type modules provide XTransliteration::transliterate().
IGNORE type modules provide XTransliteration::equals() and XTransliteration::transliterateRange().


Constants
NONE  
ONE_TO_ONE A transliteration module is ONE_TO_ONE if and only if it's mapping between characters is one to one like a-z to A-Z. Transliteration modules of this type can be used as choice in regular expressions based search/replace.  
NUMERIC A transliteration module can have attribute NUMERIC if it tranliterates numbers in different languages like chinese numbers to arabic numbers and vice versa. This mapping need not be one to one, it should be primarily used by number formatting and parsing methods.  
ONE_TO_ONE_NUMERIC A transliteration module is ONE_TO_ONE_NUMERIC if it offers both one to one mapping and handles number also.  
IGNORE With a transliterator IGNORE case, the regular expression A-Z can be transformed to a-z, for example.  
CASCADE If the transliteration is cascaded (uses more than one algorithm).  
Constants' Details
NONE
const short NONE = 0;
ONE_TO_ONE
const short ONE_TO_ONE = 1;
Description
A transliteration module is ONE_TO_ONE if and only if it's mapping between characters is one to one like a-z to A-Z. Transliteration modules of this type can be used as choice in regular expressions based search/replace.
NUMERIC
const short NUMERIC = 2;
Description
A transliteration module can have attribute NUMERIC if it tranliterates numbers in different languages like chinese numbers to arabic numbers and vice versa. This mapping need not be one to one, it should be primarily used by number formatting and parsing methods.
ONE_TO_ONE_NUMERIC
const short ONE_TO_ONE_NUMERIC = 3;
Description
A transliteration module is ONE_TO_ONE_NUMERIC if it offers both one to one mapping and handles number also.
IGNORE
const short IGNORE = 4;
Description
With a transliterator IGNORE case, the regular expression A-Z can be transformed to a-z, for example.
CASCADE
const short CASCADE = 8;
Description
If the transliteration is cascaded (uses more than one algorithm).
Top of Page