Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: 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 passed to XCharacterClassification::parseAnyToken() and XCharacterClassification::parsePredefinedToken(). They are also set in the ParseResult::StartFlags and ParseResult::ContFlags.


Constants
ASC_UPALPHA ASCII A-Z upper alpha 
ASC_LOALPHA ASCII a-z lower alpha 
ASC_DIGIT ASCII 0-9 digit 
ASC_UNDERSCORE ASCII '_' underscore 
ASC_DOLLAR ASCII '$' dollar 
ASC_DOT ASCII '.' dot/point 
ASC_COLON ASCII ':' colon 
ASC_CONTROL Special value to allow control characters (0x00 < char < 0x20) 
ASC_ANY_BUT_CONTROL Special value to allow anything below 128 except control characters. Not set in ParseResult.  
ASC_OTHER Additional flag set in ParseResult::StartFlags or ParseResult::ContFlags. Set if none of the above ASC_... (except ASC_ANY_...) single values match an ASCII character parsed.  
UNI_UPALPHA Unicode (above 127) upper case letter 
UNI_LOALPHA Unicode (above 127) lower case letter 
UNI_DIGIT Unicode (above 127) decimal digit number 
UNI_TITLE_ALPHA Unicode (above 127) title case letter 
UNI_MODIFIER_LETTER Unicode (above 127) modifier letter 
UNI_OTHER_LETTER Unicode (above 127) other letter 
UNI_LETTER_NUMBER Unicode (above 127) letter number 
UNI_OTHER_NUMBER Unicode (above 127) other number 
TWO_DOUBLE_QUOTES_BREAK_STRING 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.  
UNI_OTHER Additional flag set in ParseResult::StartFlags or ParseResult::ContFlags. Set if none of the above UNI_... single values match a Unicode character parsed.  
IGNORE_LEADING_WS Only valid for nStartCharFlags parameter to CharacterClassification::parseAnyToken and CharacterClassification::parsePredefinedToken, ignored on nContCharFlags parameter. Not set in ParseResult.  
ASC_ALPHA ASCII a-zA-Z lower or upper alpha 
ASC_ALNUM ASCII a-zA-Z0-9 alphanumeric 
UNI_ALPHA Unicode (above 127) lower or upper or title case alpha 
UNI_ALNUM Unicode (above 127) alphanumeric 
UNI_LETTER Unicode (above 127) alpha or letter 
UNI_NUMBER Unicode (above 127) number 
ANY_ALPHA any (ASCII or Unicode) alpha 
ANY_DIGIT any (ASCII or Unicode) digit 
ANY_ALNUM any (ASCII or Unicode) alphanumeric 
ANY_LETTER any (ASCII or Unicode) letter 
ANY_NUMBER any (ASCII or Unicode) number 
ANY_LETTER_OR_NUMBER any (ASCII or Unicode) letter or number 
Constants' Details
ASC_UPALPHA
const long ASC_UPALPHA = 0x00000001;
Description
ASCII A-Z upper alpha
ASC_LOALPHA
const long ASC_LOALPHA = 0x00000002;
Description
ASCII a-z lower alpha
ASC_DIGIT
const long ASC_DIGIT = 0x00000004;
Description
ASCII 0-9 digit
ASC_UNDERSCORE
const long ASC_UNDERSCORE = 0x00000008;
Description
ASCII '_' underscore
ASC_DOLLAR
const long ASC_DOLLAR = 0x00000010;
Description
ASCII '$' dollar
ASC_DOT
const long ASC_DOT = 0x00000020;
Description
ASCII '.' dot/point
ASC_COLON
const long ASC_COLON = 0x00000040;
Description
ASCII ':' colon
ASC_CONTROL
const long ASC_CONTROL = 0x00000200;
Description
Special value to allow control characters (0x00 < char < 0x20)
ASC_ANY_BUT_CONTROL
const long ASC_ANY_BUT_CONTROL = 0x00000400;
Description
Special value to allow anything below 128 except control characters. Not set in ParseResult.
ASC_OTHER
const long ASC_OTHER = 0x00000800;
Description
Additional flag set in ParseResult::StartFlags or ParseResult::ContFlags. Set if none of the above ASC_... (except ASC_ANY_...) single values match an ASCII character parsed.
UNI_UPALPHA
const long UNI_UPALPHA = 0x00001000;
Description
Unicode (above 127) upper case letter
UNI_LOALPHA
const long UNI_LOALPHA = 0x00002000;
Description
Unicode (above 127) lower case letter
UNI_DIGIT
const long UNI_DIGIT = 0x00004000;
Description
Unicode (above 127) decimal digit number
UNI_TITLE_ALPHA
const long UNI_TITLE_ALPHA = 0x00008000;
Description
Unicode (above 127) title case letter
UNI_MODIFIER_LETTER
const long UNI_MODIFIER_LETTER = 0x00010000;
Description
Unicode (above 127) modifier letter
UNI_OTHER_LETTER
const long UNI_OTHER_LETTER = 0x00020000;
Description
Unicode (above 127) other letter
UNI_LETTER_NUMBER
const long UNI_LETTER_NUMBER = 0x00040000;
Description
Unicode (above 127) letter number
UNI_OTHER_NUMBER
const long UNI_OTHER_NUMBER = 0x00080000;
Description
Unicode (above 127) other number
TWO_DOUBLE_QUOTES_BREAK_STRING
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

UNI_OTHER
const long UNI_OTHER = 0x20000000;
Description
Additional flag set in ParseResult::StartFlags or ParseResult::ContFlags. Set if none of the above UNI_... single values match a Unicode character parsed.
IGNORE_LEADING_WS
const long IGNORE_LEADING_WS = 0x40000000;
Description
Only valid for nStartCharFlags parameter to CharacterClassification::parseAnyToken and CharacterClassification::parsePredefinedToken, ignored on nContCharFlags parameter. Not set in ParseResult.
ASC_ALPHA
const long ASC_ALPHA = ASC_UPALPHA | ASC_LOALPHA;
Description
ASCII a-zA-Z lower or upper alpha
ASC_ALNUM
const long ASC_ALNUM = ASC_ALPHA | ASC_DIGIT;
Description
ASCII a-zA-Z0-9 alphanumeric
UNI_ALPHA
const long UNI_ALPHA = UNI_UPALPHA | UNI_LOALPHA | UNI_TITLE_ALPHA;
Description
Unicode (above 127) lower or upper or title case alpha
UNI_ALNUM
const long UNI_ALNUM = UNI_ALPHA | UNI_DIGIT;
Description
Unicode (above 127) alphanumeric
UNI_LETTER
const long UNI_LETTER = UNI_ALPHA | UNI_MODIFIER_LETTER | UNI_OTHER_LETTER;
Description
Unicode (above 127) alpha or letter
UNI_NUMBER
const long UNI_NUMBER = UNI_DIGIT | UNI_LETTER_NUMBER | UNI_OTHER_NUMBER;
Description
Unicode (above 127) number
ANY_ALPHA
const long ANY_ALPHA = ASC_ALPHA | UNI_ALPHA;
Description
any (ASCII or Unicode) alpha
ANY_DIGIT
const long ANY_DIGIT = ASC_DIGIT | UNI_DIGIT;
Description
any (ASCII or Unicode) digit
ANY_ALNUM
const long ANY_ALNUM = ASC_ALNUM | UNI_ALNUM;
Description
any (ASCII or Unicode) alphanumeric
ANY_LETTER
const long ANY_LETTER = ASC_ALPHA | UNI_LETTER;
Description
any (ASCII or Unicode) letter
ANY_NUMBER
const long ANY_NUMBER = ASC_DIGIT | UNI_NUMBER;
Description
any (ASCII or Unicode) number
ANY_LETTER_OR_NUMBER
const long ANY_LETTER_OR_NUMBER = ANY_LETTER | ANY_NUMBER;
Description
any (ASCII or Unicode) letter or number
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.