Library: Foundation
Package: Text
Header: Poco/Unicode.h
This class contains enumerations and static utility functions for dealing with Unicode characters and their properties.
For more information on Unicode, see <http://www.unicode.org>.
The implementation is based on the Unicode support functions in PCRE.
Member Functions: isAlpha, isDigit, isLower, isPunct, isSpace, isUpper, properties, toLower, toUpper
This structure holds the character properties
of an Unicode character.
UCP_MAX_CODEPOINT = 0x10FFFF
Unicode 5.0 character categories.
Unicode 5.0 character types.
Unicode 5.0 scripts.
static bool isAlpha(
int ch
);
Returns true if and only if the given character is a letter.
static bool isDigit(
int ch
);
Returns true if and only if the given character is a numeric character.
static bool isLower(
int ch
);
Returns true if and only if the given character is a lowercase character.
static bool isPunct(
int ch
);
Returns true if and only if the given character is a punctuation character.
static bool isSpace(
int ch
);
Returns true if and only if the given character is a separator.
static bool isUpper(
int ch
);
Returns true if and only if the given character is an uppercase character.
static void properties(
int ch,
CharacterProperties & props
);
static int toLower(
int ch
);
If the given character is an uppercase character, return its lowercase counterpart, otherwise return the character.
static int toUpper(
int ch
);
If the given character is a lowercase character, return its uppercase counterpart, otherwise return the character.