Base Framework
|
Wide-character description. More...
#include <base/string/WideString.h>
Classes | |
class | ToLowerCase |
class | ToTitleCase |
class | ToUpperCase |
Public Types | |
enum | Characteristics { LETTER = 1, LOWER = 2, UPPER = 4, TITLE = 8, DIGIT = 16, CONTROL = 32, SPACE = 64, NEWLINE = 128, PUNCTUATION = 256 } |
Public Member Functions | |
int | digitToValue (ucs4 character) noexcept |
Static Public Member Functions | |
static unsigned int | getFlags (ucs4 character) noexcept |
static bool | isLetter (ucs4 character) noexcept |
static bool | isLetterDigit (ucs4 character) noexcept |
static bool | isLower (ucs4 character) noexcept |
static bool | isUpper (ucs4 character) noexcept |
static bool | isTitle (ucs4 character) noexcept |
static bool | isDigit (ucs4 character) noexcept |
static bool | isHexDigit (ucs4 character) noexcept |
static bool | isSpace (ucs4 character) noexcept |
static bool | isPunctuation (ucs4 character) noexcept |
static bool | isControl (ucs4 character) noexcept |
static bool | isASCII (ucs4 character) noexcept |
static ucs4 | toLower (ucs4 character) noexcept |
static ucs4 | toUpper (ucs4 character) noexcept |
static ucs4 | toTitle (ucs4 character) noexcept |
Static Public Attributes | |
static constexpr ucs4 | TERMINATOR = 0 |
Wide-character description.
Default wide-character properties and manipulators.
Character characteristics.
Enumerator | |
---|---|
LETTER | Character is a letter (e.g. "a" or "A"). |
LOWER | Character is lower cased. |
UPPER | Character is upper cased. |
TITLE | Character is title cased. |
DIGIT | Any of the characters "0123456789". |
CONTROL | The characters from 0x00 to 0x1f and 0x7f. |
SPACE | Tab, newline, vertical-tab, form-feed, carriage-return, and space. |
NEWLINE | Line separator. |
PUNCTUATION | Punctuation characters. |
|
noexcept |
Returns the value of the specified character. The character must be a digit approved by isDigit(), isOctal(), isLowerHex(), isUpperHex(), or isHexDigit(). If the character is not a digit an unspecified value is returned.
|
staticnoexcept |
Returns the flags describing the specified character code.
|
inlinestaticnoexcept |
Returns true if the character is an ASCII character.
|
staticnoexcept |
Returns true if the character is a control character.
|
staticnoexcept |
Returns true if the character is cased. Returns true if the character is a digit.
|
inlinestaticnoexcept |
Returns true if the character is a hex digit.
|
inlinestaticnoexcept |
Returns true if the character a letter.
|
inlinestaticnoexcept |
Returns true if the character is a letter or a digit.
|
staticnoexcept |
Returns true if the character is in lower case.
|
inlinestaticnoexcept |
Returns true if the character is a punctuation mark.
|
staticnoexcept |
Returns true if the character is a white space.
|
staticnoexcept |
Returns true if the character is in title case.
|
staticnoexcept |
Returns true if the character is in upper case.
|
staticnoexcept |
Maps the character to lower case.
|
staticnoexcept |
Maps the character to title case.
|
staticnoexcept |
Maps the character to upper case.
|
staticconstexpr |
Specifies the terminator for NULL-terminated strings.