Faith::Char Class Reference

A character from String. More...

#include <faith/char.h>

List of all members.

Public Member Functions

 Char (unsigned short s)
 Char (const Char &copy)
 Char (const CharRef &copy)
bool operator== (const Char &other) const
bool operator!= (const Char &other) const
Charoperator= (const Char &copy)
Charoperator= (unsigned short c)
Charoperator= (const CharRef &c)
char latin1 () const
unsigned short unicode () const
uint32_t unicode32 () const
bool isNull () const
bool isPrint () const
bool isSpace () const
bool isLetterOrNumber () const
bool isDigit () const
bool isLetter () const

Detailed Description

A character from String.

Constructor & Destructor Documentation

Faith::Char::Char ( unsigned short  s  ) 

takes an ASCII character

Faith::Char::Char ( const Char copy  ) 

Makes a copy of copy

Faith::Char::Char ( const CharRef copy  ) 

Member Function Documentation

bool Faith::Char::isDigit (  )  const

true for the pattern [0-9]

bool Faith::Char::isLetter (  )  const

true if the character is of a normal part of the alphabet (??? Of all languages?)

bool Faith::Char::isLetterOrNumber (  )  const

if it is a letter or number, with the pattern [a-zA-Z0-9], or is considered such according to the unicode standard. See disclaimer above.

bool Faith::Char::isNull (  )  const

true if the character is 0

bool Faith::Char::isPrint (  )  const

true if the character is considered printable according to the unicode standard

bool Faith::Char::isSpace (  )  const

true if the character matches the pattern [
], or is considered a separator character according to the unicode standard.
When I say "or" I mean I'm not sure which, and it depends on which version of this library you use :)

char Faith::Char::latin1 (  )  const [inline]

bool Faith::Char::operator!= ( const Char other  )  const [inline]

Char& Faith::Char::operator= ( const CharRef c  ) 

Char& Faith::Char::operator= ( unsigned short  c  ) 

Char& Faith::Char::operator= ( const Char copy  ) 

bool Faith::Char::operator== ( const Char other  )  const

unsigned short Faith::Char::unicode (  )  const [inline]

uint32_t Faith::Char::unicode32 (  )  const [inline]

The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7