Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Saf::Text::Char Class Reference

Unicode character representation class. More...

#include <Char.h>

List of all members.

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.
Charoperator= (const Char &c)
 Assignment operator.
bool operator== (const Char &c) const
 Equality operator.
bool operator> (const Char &c) const
 Greater than operator.

Detailed Description

Unicode character representation class.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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.

Char& Saf::Text::Char::operator= ( const Char c) [inline]

Assignment 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.


The documentation for this class was generated from the following files: