Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/string/Char.h>
Public Member Functions | |
Char (void) | |
Char (char ch) | |
operator char (void) const | |
Char & | operator= (char ch) |
Char & | operator= (Char ch) |
int | compare (char cc) const |
int | compare (Char ch) const |
bool | isBin (void) const |
bool | isDec (void) const |
bool | isHex (void) const |
bool | isSpace (void) const |
bool | isPrintable (void) const |
bool | isLetter (void) const |
bool | isLowerCase (void) const |
bool | isUpperCase (void) const |
int | asBin (void) const |
int | asDec (void) const |
int | asHex (void) const |
bool | operator== (char ch) |
bool | operator!= (char ch) |
bool | operator< (char ch) |
bool | operator<= (char ch) |
bool | operator> (char ch) |
bool | operator>= (char ch) |
bool | operator== (Char ch) |
bool | operator!= (Char ch) |
bool | operator< (Char ch) |
bool | operator<= (Char ch) |
bool | operator> (Char ch) |
bool | operator>= (Char ch) |
Static Public Member Functions | |
static Char | bin (int v) |
static Char | dec (int v) |
static Char | hex (int v) |
static Char | lowerHex (int v) |
static Char | upperHex (int v) |
Wrapper class around the C++ char type to provide methods for character testing and conversion.
|
inline |
int asBin | ( | void | ) | const |
Convert binary character to digit.
int asDec | ( | void | ) | const |
Convert decimal character to digit.
int asHex | ( | void | ) | const |
Convert hexadecimal character to digit.
|
static |
Convert binary to character.
v | Binary digit. |
|
inline |
Referenced by Char::operator!=(), Char::operator<(), Char::operator<=(), Char::operator==(), Char::operator>(), and Char::operator>=().
|
inline |
|
static |
Convert to decimal value.
Hexadecimal | digit. |
|
inlinestatic |
Convert to hexadecimal character.
v | Digit to convert. |
References Char::lowerHex().
Test if the character is a binary digit.
References elm::bin_set, and elm::is().
Test if the character is a decimal digit.
References elm::dec_set, and elm::is().
Test if the character is a decimal digit.
References elm::hex_set, and elm::is().
Test if the character is a decimal digit.
References elm::is(), and elm::letter_set.
Test if the character is a decimal digit.
References elm::is(), and elm::lower_set.
Test if the character is a decimal digit.
Test if the character is a decimal digit.
References elm::is(), and elm::space_set.
Test if the character is a decimal digit.
References elm::is(), and elm::upper_set.
|
static |
Convert to hexadecimal character with lower-case letters.
v | Digit to convert. |
Referenced by Char::hex().
|
inline |
|
inline |
References Char::compare().
References Char::compare().
|
inline |
References Char::compare().
References Char::compare().
|
inline |
References Char::compare().
References Char::compare().
|
inline |
|
inline |
References Char::compare().
References Char::compare().
|
inline |
References Char::compare().
References Char::compare().
|
inline |
References Char::compare().
References Char::compare().
|
static |
Convert to hexadecimal character with upper-case letters.
v | Digit to convert. |