Simple Application Framework
1
|
Unicode character representation class. More...
#include <Char.h>
Public Member Functions | |
Char () | |
Default constructor. | |
Char (const Char &c) | |
Constructor. | |
Char (char c) | |
Constructor. | |
Char (Uint32 cpoint) | |
Constructor. | |
Uint32 | CodePoint () const |
Get Unicode codepoint. | |
bool | IsDigit () const |
Returns true if the character is a number. | |
bool | IsLetter () const |
Returns true if the character is a letter. | |
bool | IsLower () const |
Returns true if the character is upper case. | |
bool | IsUpper () const |
Returns true if the character is upper case. | |
bool | IsWhiteSpace () const |
Returns true if the character is a white space. | |
Uint32 | NumericValue () const |
Convert character to number 0 - 9. | |
bool | operator!= (const Char &c) const |
Inequality operator. | |
bool | operator< (const Char &c) const |
Less than operator. | |
Char & | operator= (const Char &c) |
Assignment operator. | |
bool | operator== (const Char &c) const |
Equality operator. | |
bool | operator> (const Char &c) const |
Greater than operator. |
Unicode character representation class.
Saf::Text::Char::Char | ( | ) | [inline] |
Default constructor.
No initialization is done.
Saf::Text::Char::Char | ( | const Char & | c | ) | [inline] |
Constructor.
Saf::Text::Char::Char | ( | char | c | ) | [inline, explicit] |
Constructor.
Saf::Text::Char::Char | ( | Uint32 | cpoint | ) | [inline, explicit] |
Constructor.
Uint32 Saf::Text::Char::CodePoint | ( | ) | const [inline] |
Get Unicode codepoint.
bool Saf::Text::Char::IsDigit | ( | ) | const [inline] |
Returns true if the character is a number.
bool Saf::Text::Char::IsLetter | ( | ) | const [inline] |
Returns true if the character is a letter.
bool Saf::Text::Char::IsLower | ( | ) | const [inline] |
Returns true if the character is upper case.
bool Saf::Text::Char::IsUpper | ( | ) | const [inline] |
Returns true if the character is upper case.
bool Saf::Text::Char::IsWhiteSpace | ( | ) | const [inline] |
Returns true if the character is a white space.
Uint32 Saf::Text::Char::NumericValue | ( | ) | const |
Convert character to number 0 - 9.
If the character is not a digit an InvalidOperationException is thrown.
bool Saf::Text::Char::operator!= | ( | const Char & | c | ) | const [inline] |
Inequality operator.
bool Saf::Text::Char::operator< | ( | const Char & | c | ) | const [inline] |
Less than operator.
bool Saf::Text::Char::operator== | ( | const Char & | c | ) | const [inline] |
Equality operator.
bool Saf::Text::Char::operator> | ( | const Char & | c | ) | const [inline] |
Greater than operator.