File Information
Library: Foundation
Package: Text
Header: Poco/Unicode.h
Description
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 Summary
Member Functions: isAlpha, isDigit, isLower, isPunct, isSpace, isUpper, properties, toLower, toUpper
Nested Classes
struct CharacterProperties
This structure holds the character properties of an Unicode character.
Enumerations
Anonymous
UCP_MAX_CODEPOINT = 0x10FFFF
CharacterCategory
Unicode character categories.
CharacterType
Unicode character types.
Script
Unicode 7.0 script identifiers.
Member Functions
isAlpha
static bool isAlpha(
int ch
);
Returns true iff the given character is a letter.
isDigit
static bool isDigit(
int ch
);
Returns true iff the given character is a numeric character.
isLower
static bool isLower(
int ch
);
Returns true iff the given character is a lowercase character.
isPunct
static bool isPunct(
int ch
);
Returns true iff the given character is a punctuation character.
isSpace
static bool isSpace(
int ch
);
Returns true iff the given character is a separator.
isUpper
static bool isUpper(
int ch
);
Returns true iff the given character is an uppercase character.
properties
static void properties(
int ch,
CharacterProperties & props
);
toLower
static int toLower(
int ch
);
If the given character is an uppercase character, return its lowercase counterpart, otherwise return the character.
toUpper
static int toUpper(
int ch
);
If the given character is a lowercase character, return its uppercase counterpart, otherwise return the character.