CsString
1.4.1
|
Represents a single code point. More...
Public Member Functions | |
CsChar () | |
template<typename T = int> | |
CsChar (char c) | |
CsChar (char32_t c) | |
CsChar (int c) | |
bool | operator!= (const CsChar &other) const |
bool | operator< (const CsChar &other) const |
bool | operator<= (const CsChar &other) const |
CsChar & | operator= (char c) & |
CsChar & | operator= (char32_t c) & |
bool | operator== (const CsChar &other) const |
bool | operator> (const CsChar &other) const |
bool | operator>= (const CsChar &other) const |
uint32_t | unicode () const |
A CsChar represents a single code point. The internal representation is a uint32_t.
|
inline |
Constructs a CsChar.
|
inline |
Constructs a CsChar using the specified code point c.
This constructor is only permitted if CS_STRING_ALLOW_UNSAFE is defined.
|
inline |
Constructs a CsChar using the specified code point c.
|
inline |
Constructs a CsChar using the specified code point c.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be not equal to the code point in this CsChar.
Returns true if other is not equal to this CsChar.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be less than the code point in this CsChar.
Returns true if other is less than this CsChar.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be less than or equal to the code point in this CsChar.
Returns true if other is less than or equal to this CsChar.
|
inline |
Assigns the specified char c to this CsChar. Returns a reference to a CsChar.
This assignment is only permitted if CS_STRING_ALLOW_UNSAFE is defined.
|
inline |
Assigns the specified char32 c to this CsChar. Returns a reference to a CsChar.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be equal to the code point in this CsChar.
Returns true if other is equal to this CsChar.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be greater than the code point in this CsChar.
Returns true if other is greater than this CsChar.
|
inline |
Compares the contents of the specified CsChar other with this CsChar. The value of the code point in other must be greater than or equal to the code point in this CsChar.
Returns true if other is greater than or equal to this CsChar.
|
inline |
Returns the unicode value for this CsChar.