Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Text types

TText represents a character in the natural character width for the EPOC build. For Unicode builds, this is 16 bits. For non-Unicode builds, this is 8 bits.

TText8 is always available for build-independent 8-bit characters, and TText16 is always available for build-independent 16-bit characters. TText is mapped onto either of these types, depending on the build.

TText types are implemented as TUints of the appropriate size. TText should be used for representing characters, as a reminder to the programmer.

The TChar class wraps a character value and provides a number of utility functions to manipulate it and to test its properties, such as converting the character to uppercase and testing whether it’s a control character.