constants group KParseType in module com::sun::star::i18n::

(Global Index)

Syntax

constants group KParseType;

Description

Constants set by the parser to specify the type of the parsed final token.

Constants Summary

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 in ParseResult::Value .

MISSING_QUOTE Set (ored) if SINGLE_QUOTE_NAME or DOUBLE_QUOTE_STRING has no closing quote.

ANY_NUMBER Useful combinations

Field Details



ONE_SINGLE_CHAR

Syntax

const long  ONE_SINGLE_CHAR = 0x00000001;

Description

One single character like ! # ; : $ et al.


BOOLEAN

Syntax

const long  BOOLEAN = 0x00000002;

Description

A Boolean operator like <, >, <>, =, <=, >=


IDENTNAME

Syntax

const long  IDENTNAME = 0x00000004;

Description

A name matching the conditions passed.


SINGLE_QUOTE_NAME

Syntax

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

Syntax

const long  DOUBLE_QUOTE_STRING = 0x00000010;

Description

A double-quoted string ( "str\"i""ng" ). Dequoted string in ParseResult::DequotedNameOrString ( str"i"ng ).


ASC_NUMBER

Syntax

const long  ASC_NUMBER = 0x00000020;

Description

A number where all digits are ASCII characters. Numerical value in ParseResult::Value .


UNI_NUMBER

Syntax

const long  UNI_NUMBER = 0x00000040;

Description

A number where at least some digits are Unicode (and maybe ASCII) characters. Numerical value in ParseResult::Value .


MISSING_QUOTE

Syntax

const long  MISSING_QUOTE = 0x40000000;

Description

Set (ored) if SINGLE_QUOTE_NAME or DOUBLE_QUOTE_STRING has no closing quote.


ANY_NUMBER

Syntax

const long  ANY_NUMBER = ASC_NUMBER | UNI_NUMBER;

Description

Useful combinations

Top of Page