Top   Module   Use   Manual   Index 

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

constants group KParseTokens


Description
These constants specify the characters, a name or identifier token to be parsed, can have. They are also set in the ParseResult::StartFlags and ParseResult::ContFlags .


Constants

const long ASC_UPALPHA = = 0x00000001;
Description
Flags for characters below 128
const long ASC_LOALPHA = = 0x00000002;
const long ASC_DIGIT = = 0x00000004;
const long ASC_UNDERSCORE = = 0x00000008;
const long ASC_DOLLAR = = 0x00000010;
Description
'_'
const long ASC_DOT = = 0x00000020;
Description
'$'
const long ASC_COLON = = 0x00000040;
Description
'.'
const long ASC_CONTROL = = 0x00000200;
Description
Special value to allow control characters (0x00 < char < 0x20)
const long ASC_ANY_BUT_CONTROL = = 0x00000400;
Description
Special value to allow anything below 128 except control characters. Not set in ParseResult .
const long ASC_OTHER = = 0x00000800;
Description
Additional flags set in ParseResult::StartFlags or ParseResult::ContFlags . Set if none of the above ASC_... (except ASC_ANY_...) single values match a character.
const long UNI_UPALPHA = = 0x00001000;
Description
Flags for characters above 127
const long UNI_LOALPHA = = 0x00002000;
Description
UPPERCASE_LETTER
const long UNI_DIGIT = = 0x00004000;
Description
LOWERCASE_LETTER
const long UNI_TITLE_ALPHA = = 0x00008000;
Description
DECIMAL_DIGIT_NUMBER
const long UNI_MODIFIER_LETTER = = 0x00010000;
Description
TITLECASE_LETTER
const long UNI_OTHER_LETTER = = 0x00020000;
const long UNI_LETTER_NUMBER = = 0x00040000;
const long UNI_OTHER_NUMBER = = 0x00080000;
const long TWO_DOUBLE_QUOTES_BREAK_STRING = = 0x10000000;
Description
If this bit is set in nContCharFlags parameters and a string enclosed in double quotes is parsed and two consecutive double quotes are encountered, the string is ended. If this bit is not set, the two double quotes are parsed as one escaped double quote and string parsing continues. The bit is ignored in nStartCharFlags parameters. Example: "abc""def" --> bit not set => abc"def "abc""def" --> bit set => abc
const long UNI_OTHER = = 0x20000000;
Description
Additional flags set in ParseResult::StartFlags or ParseResult::ContFlags . Set if none of the above UNI_... single values match a character.
const long IGNORE_LEADING_WS = = 0x40000000;
Description
Only valid for nStartCharFlags parameter to ChararacterClassification::parseAnyToken and ChararacterClassification::parsePredefinedToken , ignored on nContCharFlags parameter. Not set in ParseResult .
const long ASC_ALPHA = = ASC_UPALPHA | ASC_LOALPHA;
Description
Useful combinations
const long ASC_ALNUM = = ASC_ALPHA | ASC_DIGIT;
const long UNI_ALPHA = = UNI_UPALPHA | UNI_LOALPHA | UNI_TITLE_ALPHA;
const long UNI_ALNUM = = UNI_ALPHA | UNI_DIGIT;
const long UNI_LETTER = = UNI_ALPHA | UNI_MODIFIER_LETTER | UNI_OTHER_LETTER;
const long UNI_NUMBER = = UNI_DIGIT | UNI_LETTER_NUMBER | UNI_OTHER_NUMBER;
const long ANY_ALPHA = = ASC_ALPHA | UNI_ALPHA;
const long ANY_DIGIT = = ASC_DIGIT | UNI_DIGIT;
const long ANY_ALNUM = = ASC_ALNUM | UNI_ALNUM;
const long ANY_LETTER = = ASC_ALPHA | UNI_LETTER;
const long ANY_NUMBER = = ASC_DIGIT | UNI_NUMBER;
const long ANY_LETTER_OR_NUMBER = = ANY_LETTER | ANY_NUMBER;
Top of Page