Tanl Linguistic Pipeline

Tanl::Text::Char Class Reference

Representation of Unicode characters. More...

#include <Char.h>

Inheritance diagram for Tanl::Text::Char:
Tanl::Text::Utf8Char

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.


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.
bool Tanl::Text::Char::IsPunctuation (  )  const [inline]

Checks if the character is a punctuation character.

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

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

Checks if the character is a space character.

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

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

Checks if the Unicode character is a whitespace character.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.