DeSR Dependency Parser

Tanl::Text::Char Class Reference

Representation of Unicode characters. More...

#include <Char.h>

Inheritance diagram for Tanl::Text::Char:

Inheritance graph

List of all members.

Public Types

typedef Char CharType
 type of chars to return
typedef UCS2 CodeUnit
 code units out of which the Char is made

Public Member Functions

 Char (UCS2 ucs)
 operator UCS2 () const
int CompareTo (Char const &other) const
 Compares this Char to another Char, returning an integer that indicates the relationship.
int CompareCase (Char const &other) const
Unicode::Category GetCategory () const
bool IsControl () const
bool IsDigit () const
bool IsLetter () const
bool IsLetterOrDigit () const
bool IsLower () const
bool IsMark () const
bool IsPunctuation () const
 Checks if the character is a punctuation character.
bool IsSpace () const
 Checks if the character is a space character.
bool IsSymbol () const
bool IsTitle () const
bool IsUpper () const
bool IsWhitespace () const
 Checks if the Unicode character is a whitespace character.
int ToDigit (int radix)
Char ToLower () const
Char ToUpper () const
Unicode::BlockCode BlockCode ()
 Return the Unicode allocation block that contains the character.

Static Public Attributes

static const int MaxRadix = 36
static const int MinRadix = 2
static const UCS2 MaxValue = 0xFFFF
static const UCS2 MinValue = 0x0000

Protected Attributes

UCS2 ucs


Detailed Description

Representation of Unicode characters.

Definition at line 40 of file Char.h.


Member Function Documentation

int Tanl::Text::Char::CompareTo ( Char const &  other  )  const [inline]

Compares this Char to another Char, returning an integer that indicates the relationship.

Returns:
a value less than zero if this object null is considered to be less than any instance.

Definition at line 83 of file Char.h.

bool Tanl::Text::Char::IsPunctuation (  )  const [inline]

Checks if the character is a punctuation character.

Definition at line 111 of file Char.h.

References Tanl::Text::Unicode::UnicodeTable.

bool Tanl::Text::Char::IsSpace (  )  const [inline]

Checks if the character is a space character.

Definition at line 116 of file Char.h.

References Tanl::Text::Unicode::UnicodeTable.

bool Tanl::Text::Char::IsWhitespace (  )  const [inline]

Checks if the Unicode character is a whitespace character.

Definition at line 134 of file Char.h.

References Tanl::Text::Unicode::UnicodeTable.


The documentation for this class was generated from the following files:
 
Copyright © 2005-2007 G. Attardi. Generated on 13 Aug 2009 by doxygen 1.5.7.1.