|
static int | properties (int ch) |
|
static bool | hasSomeProperties (int ch, int properties) |
|
static bool | hasProperties (int ch, int properties) |
|
static bool | isAscii (int ch) |
|
static bool | isSpace (int ch) |
|
static bool | isDigit (int ch) |
| Returns true iff the given character is a whitespace.
|
|
static bool | isHexDigit (int ch) |
| Returns true iff the given character is a digit.
|
|
static bool | isPunct (int ch) |
| Returns true iff the given character is a hexadecimal digit.
|
|
static bool | isAlpha (int ch) |
| Returns true iff the given character is a punctuation character.
|
|
static bool | isAlphaNumeric (int ch) |
| Returns true iff the given character is an alphabetic character.
|
|
static bool | isLower (int ch) |
| Returns true iff the given character is an alphabetic character.
|
|
static bool | isUpper (int ch) |
|
static bool | isPrintable (int ch) |
|
static int | toLower (int ch) |
| Returns true iff the given character is printable.
|
|
static int | toUpper (int ch) |
|
This class contains enumerations and static utility functions for dealing with ASCII characters and their properties.
The classification functions will also work if non-ASCII character codes are passed to them, but classification will only check for ASCII characters.
This allows the classification methods to be used on the single bytes of a UTF-8 string, without causing assertions or inconsistent results (depending upon the current locale) on bytes outside the ASCII range, as may be produced by Ascii::isSpace(), etc.
Definition at line 27 of file Ascii.h.