Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

UnicodeLatinMap Class Reference

This class mainly serves as a container for a largish table of the subset of the Unicode character set that corresponds to the Latin alphabet, with its various accent marks and so on. More...

#include <unicodeLatinMap.h>

List of all members.

Public Types

enum  AccentType {
  AT_none, AT_acute, AT_acute_and_dot_above, AT_breve,
  AT_breve_and_acute, AT_breve_and_dot_below, AT_breve_and_grave, AT_breve_and_hook_above,
  AT_breve_and_tilde, AT_breve_below, AT_caron, AT_caron_and_dot_above,
  AT_cedilla, AT_cedilla_and_acute, AT_cedilla_and_breve, AT_circumflex,
  AT_circumflex_and_acute, AT_circumflex_and_dot_below, AT_circumflex_and_grave, AT_circumflex_and_hook_above,
  AT_circumflex_and_tilde, AT_circumflex_below, AT_comma_below, AT_curl,
  AT_diaeresis, AT_diaeresis_and_acute, AT_diaeresis_and_caron, AT_diaeresis_and_grave,
  AT_diaeresis_and_macron, AT_diaeresis_below, AT_dot_above, AT_dot_above_and_macron,
  AT_dot_below, AT_dot_below_and_dot_above, AT_dot_below_and_macron, AT_double_acute,
  AT_double_grave, AT_grave, AT_hook, AT_hook_above,
  AT_horn, AT_horn_and_acute, AT_horn_and_dot_below, AT_horn_and_grave,
  AT_horn_and_hook_above, AT_horn_and_tilde, AT_inverted_breve, AT_line_below,
  AT_macron, AT_macron_and_acute, AT_macron_and_diaeresis, AT_macron_and_grave,
  AT_ogonek, AT_ogonek_and_macron, AT_ring_above, AT_ring_above_and_acute,
  AT_ring_below, AT_stroke, AT_stroke_and_acute, AT_stroke_and_hook,
  AT_tilde, AT_tilde_and_acute, AT_tilde_and_diaeresis, AT_tilde_and_macron,
  AT_tilde_below, AT_topbar
}
enum  AdditionalFlags {
  AF_ligature = 0x0001, AF_turned = 0x0002, AF_reversed = 0x0004, AF_smallcap = 0x0008,
  AF_dotless = 0x0010
}
enum  CharType { CT_upper, CT_lower, CT_punct }

Static Public Member Functions

const Entrylook_up (wchar_t character)
 Returns the Entry associated with the indicated character, if there is one.


Private Types

typedef pmap< wchar_t, const
Entry * > 
ByCharacter
enum  { max_direct_chars = 256 }

Static Private Member Functions

void init ()
 Initializes the map, if it has not already been initialized.


Static Private Attributes

bool _initialized = false
ByCharacter _by_character
const Entry_direct_chars [max_direct_chars]


Detailed Description

This class mainly serves as a container for a largish table of the subset of the Unicode character set that corresponds to the Latin alphabet, with its various accent marks and so on.

Specifically, this table indicates how to map between the Unicode accented character and the corresponding ASCII equivalent without the accent mark; as well as how to switch case from upper to lower while retaining the Unicode accent marks.

Definition at line 51 of file unicodeLatinMap.h.


Member Typedef Documentation

typedef pmap<wchar_t, const Entry *> UnicodeLatinMap::ByCharacter [private]
 

Definition at line 154 of file unicodeLatinMap.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
max_direct_chars 

Definition at line 156 of file unicodeLatinMap.h.

enum UnicodeLatinMap::AccentType
 

Enumeration values:
AT_none 
AT_acute 
AT_acute_and_dot_above 
AT_breve 
AT_breve_and_acute 
AT_breve_and_dot_below 
AT_breve_and_grave 
AT_breve_and_hook_above 
AT_breve_and_tilde 
AT_breve_below 
AT_caron 
AT_caron_and_dot_above 
AT_cedilla 
AT_cedilla_and_acute 
AT_cedilla_and_breve 
AT_circumflex 
AT_circumflex_and_acute 
AT_circumflex_and_dot_below 
AT_circumflex_and_grave 
AT_circumflex_and_hook_above 
AT_circumflex_and_tilde 
AT_circumflex_below 
AT_comma_below 
AT_curl 
AT_diaeresis 
AT_diaeresis_and_acute 
AT_diaeresis_and_caron 
AT_diaeresis_and_grave 
AT_diaeresis_and_macron 
AT_diaeresis_below 
AT_dot_above 
AT_dot_above_and_macron 
AT_dot_below 
AT_dot_below_and_dot_above 
AT_dot_below_and_macron 
AT_double_acute 
AT_double_grave 
AT_grave 
AT_hook 
AT_hook_above 
AT_horn 
AT_horn_and_acute 
AT_horn_and_dot_below 
AT_horn_and_grave 
AT_horn_and_hook_above 
AT_horn_and_tilde 
AT_inverted_breve 
AT_line_below 
AT_macron 
AT_macron_and_acute 
AT_macron_and_diaeresis 
AT_macron_and_grave 
AT_ogonek 
AT_ogonek_and_macron 
AT_ring_above 
AT_ring_above_and_acute 
AT_ring_below 
AT_stroke 
AT_stroke_and_acute 
AT_stroke_and_hook 
AT_tilde 
AT_tilde_and_acute 
AT_tilde_and_diaeresis 
AT_tilde_and_macron 
AT_tilde_below 
AT_topbar 

Definition at line 53 of file unicodeLatinMap.h.

enum UnicodeLatinMap::AdditionalFlags
 

Enumeration values:
AF_ligature 
AF_turned 
AF_reversed 
AF_smallcap 
AF_dotless 

Definition at line 122 of file unicodeLatinMap.h.

enum UnicodeLatinMap::CharType
 

Enumeration values:
CT_upper 
CT_lower 
CT_punct 

Definition at line 130 of file unicodeLatinMap.h.


Member Function Documentation

void UnicodeLatinMap::init  )  [static, private]
 

Initializes the map, if it has not already been initialized.

Definition at line 1353 of file unicodeLatinMap.cxx.

References _by_character.

const UnicodeLatinMap::Entry * UnicodeLatinMap::look_up wchar_t  character  )  [static]
 

Returns the Entry associated with the indicated character, if there is one.

Definition at line 1324 of file unicodeLatinMap.cxx.

Referenced by TextEncoder::get_encoded_char(), TextEncoder::get_text_as_ascii(), TextEncoder::get_wtext_as_ascii(), TextEncoder::make_lower(), and TextEncoder::set_unicode_char().


Member Data Documentation

UnicodeLatinMap::ByCharacter UnicodeLatinMap::_by_character [static, private]
 

Definition at line 25 of file unicodeLatinMap.cxx.

Referenced by init().

const UnicodeLatinMap::Entry * UnicodeLatinMap::_direct_chars [static, private]
 

Definition at line 26 of file unicodeLatinMap.cxx.

bool UnicodeLatinMap::_initialized = false [static, private]
 

Definition at line 24 of file unicodeLatinMap.cxx.


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:56:02 2003 for Panda by doxygen1.3