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 KParseType
Description
Constants to specify the type of a parsed token.

Set by XCharacterClassification::parseAnyToken() and XCharacterClassification::parsePredefinedToken() in ParseResult::TokenType.


Constants
ONE_SINGLE_CHAR One single character like ! # ; : $ et al. 
BOOLEAN A Boolean operator like <, >, <>, =, <=, >= 
IDENTNAME A name matching the conditions passed. 
SINGLE_QUOTE_NAME "A single-quoted name matching the conditions passed ( 'na\'me' )." "Dequoted name in ParseResult::DequotedNameOrString ( na'me )."  
DOUBLE_QUOTE_STRING A double-quoted string ( "str\"i""ng" ). Dequoted string in ParseResult::DequotedNameOrString ( str"i"ng ).  
ASC_NUMBER A number where all digits are ASCII characters. Numerical value in ParseResult::Value.  
UNI_NUMBER A number where at least some digits are Unicode (and maybe ASCII) characters. Numerical value inKParseType ParseResult::Value.  
MISSING_QUOTE Set (ored) if SINGLE_QUOTE_NAME or DOUBLE_QUOTE_STRING has no closing quote.  
ANY_NUMBER Any ASCII or Unicode number 
Constants' Details
ONE_SINGLE_CHAR
const long ONE_SINGLE_CHAR = 0x00000001;
Description
One single character like ! # ; : $ et al.
BOOLEAN
const long BOOLEAN = 0x00000002;
Description
A Boolean operator like <, >, <>, =, <=, >=
IDENTNAME
const long IDENTNAME = 0x00000004;
Description
A name matching the conditions passed.
SINGLE_QUOTE_NAME
const long SINGLE_QUOTE_NAME = 0x00000008;
Description
"A single-quoted name matching the conditions passed ( 'na\'me' )." "Dequoted name in ParseResult::DequotedNameOrString ( na'me )."
DOUBLE_QUOTE_STRING
const long DOUBLE_QUOTE_STRING = 0x00000010;
Description
A double-quoted string ( "str\"i""ng" ). Dequoted string in ParseResult::DequotedNameOrString ( str"i"ng ).
ASC_NUMBER
const long ASC_NUMBER = 0x00000020;
Description
A number where all digits are ASCII characters. Numerical value in ParseResult::Value.
UNI_NUMBER
const long UNI_NUMBER = 0x00000040;
Description
A number where at least some digits are Unicode (and maybe ASCII) characters. Numerical value inKParseType ParseResult::Value.
MISSING_QUOTE
const long MISSING_QUOTE = 0x40000000;
Description
Set (ored) if SINGLE_QUOTE_NAME or DOUBLE_QUOTE_STRING has no closing quote.
ANY_NUMBER
const long ANY_NUMBER = ASC_NUMBER | UNI_NUMBER;
Description
Any ASCII or Unicode 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.