LibreOffice LibreOffice 4.3 SDK API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Variables
com::sun::star::i18n::KParseTokens Constant Group Referencepublished

These constants specify the characters a name or identifier token to be parsed can have. More...

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

## Detailed 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.

## Variable Documentation

const long ANY_ALNUM = ASC_ALNUM | UNI_ALNUM

any (ASCII or Unicode) alphanumeric

const long ANY_ALPHA = ASC_ALPHA | UNI_ALPHA

any (ASCII or Unicode) alpha

const long ANY_DIGIT = ASC_DIGIT | UNI_DIGIT

any (ASCII or Unicode) digit

const long ANY_LETTER = ASC_ALPHA | UNI_LETTER

any (ASCII or Unicode) letter

const long ANY_LETTER_OR_NUMBER = ANY_LETTER | ANY_NUMBER

any (ASCII or Unicode) letter or number

const long ANY_NUMBER = ASC_DIGIT | UNI_NUMBER

any (ASCII or Unicode) number

const long ASC_ALNUM = ASC_ALPHA | ASC_DIGIT

ASCII a-zA-Z0-9 alphanumeric.

const long ASC_ALPHA = ASC_UPALPHA | ASC_LOALPHA

ASCII a-zA-Z lower or upper alpha.

const long ASC_ANY_BUT_CONTROL = 0x00000400

Special value to allow anything below 128 except control characters.

Not set in ParseResult.

const long ASC_COLON = 0x00000040

ASCII ':' colon.

const long ASC_CONTROL = 0x00000200

Special value to allow control characters (0x00 < char < 0x20)

const long ASC_DIGIT = 0x00000004

ASCII 0-9 digit.

const long ASC_DOLLAR = 0x00000010

ASCII '$' dollar.

const long ASC_DOT = 0x00000020

ASCII '.' dot/point.

const long ASC_LOALPHA = 0x00000002

ASCII a-z lower alpha.

const long ASC_OTHER = 0x00000800

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.

const long ASC_UNDERSCORE = 0x00000008

ASCII '_' underscore.

const long ASC_UPALPHA = 0x00000001

ASCII A-Z upper alpha.

const long IGNORE_LEADING_WS = 0x40000000

Only valid for nStartCharFlags parameter to ChararacterClassification::parseAnyToken() and ChararacterClassification::parsePredefinedToken(), ignored on nContCharFlags parameter.

Not set in ParseResult.

const long TWO_DOUBLE_QUOTES_BREAK_STRING = 0x10000000

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 <br/> "abc""def" –> bit set => abc

const long UNI_ALNUM = UNI_ALPHA | UNI_DIGIT

Unicode (above 127) alphanumeric.

const long UNI_ALPHA = UNI_UPALPHA | UNI_LOALPHA | UNI_TITLE_ALPHA

Unicode (above 127) lower or upper or title case alpha.

const long UNI_DIGIT = 0x00004000

Unicode (above 127) decimal digit number.

const long UNI_LETTER

Initial value:
= UNI_ALPHA | UNI_MODIFIER_LETTER |
UNI_OTHER_LETTER
com::sun::star::i18n::KParseTokens::UNI_ALPHA
const long UNI_ALPHA
Unicode (above 127) lower or upper or title case alpha.
Definition: KParseTokens.idl:133
com::sun::star::i18n::KParseTokens::UNI_MODIFIER_LETTER
const long UNI_MODIFIER_LETTER
Unicode (above 127) modifier letter.
Definition: KParseTokens.idl:87
com::sun::star::i18n::KParseTokens::UNI_OTHER_LETTER
const long UNI_OTHER_LETTER
Unicode (above 127) other letter.
Definition: KParseTokens.idl:90

Unicode (above 127) alpha or letter.

const long UNI_LETTER_NUMBER = 0x00040000

Unicode (above 127) letter number.

const long UNI_LOALPHA = 0x00002000

Unicode (above 127) lower case letter.

const long UNI_MODIFIER_LETTER = 0x00010000

Unicode (above 127) modifier letter.

const long UNI_NUMBER

Initial value:
= UNI_DIGIT | UNI_LETTER_NUMBER |
UNI_OTHER_NUMBER
com::sun::star::i18n::KParseTokens::UNI_DIGIT
const long UNI_DIGIT
Unicode (above 127) decimal digit number.
Definition: KParseTokens.idl:81
com::sun::star::i18n::KParseTokens::UNI_LETTER_NUMBER
const long UNI_LETTER_NUMBER
Unicode (above 127) letter number.
Definition: KParseTokens.idl:93
com::sun::star::i18n::KParseTokens::UNI_OTHER_NUMBER
const long UNI_OTHER_NUMBER
Unicode (above 127) other number.
Definition: KParseTokens.idl:96

Unicode (above 127) number.

const long UNI_OTHER = 0x20000000

Additional flag set in ParseResult::StartFlags or ParseResult::ContFlags.

Set if none of the above UNI_... single values match a Unicode character parsed.

const long UNI_OTHER_LETTER = 0x00020000

Unicode (above 127) other letter.

const long UNI_OTHER_NUMBER = 0x00080000

Unicode (above 127) other number.

const long UNI_TITLE_ALPHA = 0x00008000

Unicode (above 127) title case letter.

const long UNI_UPALPHA = 0x00001000

Unicode (above 127) upper case letter.