Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Lexical Analysis Overview

[Top]


Purpose

Provides string analysis and string-to-number conversions.

[Top]


Description

The API has two key concepts: lexical analyser, and extraction mark.


Lexical analyser

The lexical analyser provides facilities to identify and extract characters and tokens (substrings delimited by white space) from a descriptor or NULL-terminated string. It also provides string-to-number conversions.

The lexical analyser interface is provided by TLex16 for wide strings, and TLex8 for narrow strings. From Symbian OS v5.1 onwards, TLex is a typedef for TLex16.


Extraction mark

The extraction mark allows positions in a string that is being analysed to be remembered. Later lexical analysis operations can then operate on this position in the string.

The extraction mark interface is provided by TLexMark16 for wide strings, and TLexMark8 for narrow strings. From Symbian OS v5.1 onwards, TLexMark is a typedef for TLexMark16.

[Top]


See also

Descriptors Overview