|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_STRING_CHAR_H_
22 #define ELM_STRING_CHAR_H_
28 inline Char(
void): c(
'\0') { }
29 inline Char(
char ch): c(ch) { }
30 inline operator char(
void)
const {
return c; }
34 inline int compare(
char cc)
const {
return (
unsigned char)c - (
unsigned char)cc; }
35 inline int compare(
Char ch)
const {
return (
unsigned char)c - (
unsigned char)ch.c; }
43 bool isBin(
void)
const;
44 bool isDec(
void)
const;
45 bool isHex(
void)
const;
52 int asBin(
void)
const;
53 int asDec(
void)
const;
54 int asHex(
void)
const;
int compare(Char ch) const
Definition: Char.h:35
bool operator==(char ch)
Definition: Char.h:56
Char(char ch)
Definition: Char.h:29
bool operator<(Char ch)
Definition: Char.h:65
int compare(char cc) const
Definition: Char.h:34
bool isUpperCase(void) const
Definition: string_Char.cpp:173
static Char lowerHex(int v)
Definition: string_Char.cpp:83
bool operator!=(Char ch)
Definition: Char.h:64
Char & operator=(char ch)
Definition: Char.h:31
Char(void)
Definition: Char.h:28
static Char bin(int v)
Definition: string_Char.cpp:53
int asDec(void) const
Definition: string_Char.cpp:196
int asHex(void) const
Definition: string_Char.cpp:208
bool operator>=(Char ch)
Definition: Char.h:68
bool operator>(char ch)
Definition: Char.h:60
bool isSpace(void) const
Definition: string_Char.cpp:137
static Char upperHex(int v)
Definition: string_Char.cpp:97
static Char dec(int v)
Definition: string_Char.cpp:64
bool operator<(char ch)
Definition: Char.h:58
bool operator!=(char ch)
Definition: Char.h:57
static Char hex(int v)
Definition: Char.h:39
Char & operator=(Char ch)
Definition: Char.h:32
bool isPrintable(void) const
Definition: string_Char.cpp:146
int asBin(void) const
Definition: string_Char.cpp:182
bool operator<=(Char ch)
Definition: Char.h:66
bool isDec(void) const
Definition: string_Char.cpp:119
bool operator<=(char ch)
Definition: Char.h:59
bool operator==(Char ch)
Definition: Char.h:63
bool operator>(Char ch)
Definition: Char.h:67
bool isLetter(void) const
Definition: string_Char.cpp:155
bool isLowerCase(void) const
Definition: string_Char.cpp:164
bool isHex(void) const
Definition: string_Char.cpp:128
bool isBin(void) const
Definition: string_Char.cpp:110
bool operator>=(char ch)
Definition: Char.h:61