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

textcodec.cpp File Reference

Definitions of TextCodec class methods. More...

#include "textcodec.h"

Go to the source code of this file.

Defines

#define EXPAT_MAP_SINGLE_BYTE_ENCODING_TO_UTF8(_enc_, _info_)
 Map a single byte encoding to UTF-8 by filling in the Expat info structure. More...

#define ENCODING_SIZE(_mib_, _mibGiven_, _size_)
 Return the size of the encoding if it matches given encoding. More...

#define ENCODING_MIB(_enc_, _encGiven_, _mib_)
 Return the MOB of the encoding if it matches given encoding. More...


Variables

int US_ASCII_to_UTF8_table []
 the table for converting US ASCII to UTF-8. More...

int ISO_8859_2_to_UTF8_table []
 the table for converting ISO-8859-2 to UTF-8. More...


Detailed Description

Definitions of TextCodec class methods.

This file contains definitions of TextCodec class methods.

Definition in file textcodec.cpp.


Define Documentation

#define ENCODING_MIB _enc_,
_encGiven_,
_mib_   
 

Value:

if (!xmlchar_cstrcmp(_encGiven_, _enc_))                \
  return _mib_;                                         \
Return the MOB of the encoding if it matches given encoding.

Parameters:
_enc_  The name of the encoding.
_encGiven_  The name of matched encoding.
_mib_  The MIB of the encoding.

Definition at line 129 of file textcodec.cpp.

Referenced by TextCodec::getMIB.

#define ENCODING_SIZE _mib_,
_mibGiven_,
_size_   
 

Value:

if (_mib_ == _mibGiven_)                                \
  return _size_;
Return the size of the encoding if it matches given encoding.

Parameters:
_mib_  The MIB of the encoding.
_mibGiven_  The MIB of matched encoding.
_size_  The size of the encoding.

Definition at line 116 of file textcodec.cpp.

Referenced by TextCodec::suggestAlphabetBaseSize.

#define EXPAT_MAP_SINGLE_BYTE_ENCODING_TO_UTF8 _enc_,
_info_   
 

Value:

{                                                               \
  size_t i;                                                     \
                                                                \
  for (i = 0; i < 128; i++)                                     \
    _info_->map[i] = i;                                         \
                                                                \
  for (i = 128; i < 256; i++)                                   \
    _info_->map[i] = _enc_ ## _to_UTF8_table[i-128];            \
}
Map a single byte encoding to UTF-8 by filling in the Expat info structure.

Parameters:
_enc_  The name of the encoding (for example: ISO-8859-2).
_info_  The Expat info structure.

Definition at line 96 of file textcodec.cpp.

Referenced by TextCodec::fillInMapArray.


Variable Documentation

int ISO_8859_2_to_UTF8_table[] [static]
 

Initial value:

{
  0xc280, 0xc281, 0xc282, 0xc283, 0xc284, 0xc285, 0xc286, 0xc287,
  0xc288, 0xc289, 0xc28a, 0xc28b, 0xc28c, 0xc28d, 0xc28e, 0xc28f,
  0xc290, 0xc291, 0xc292, 0xc293, 0xc294, 0xc295, 0xc296, 0xc297,
  0xc298, 0xc299, 0xc29a, 0xc29b, 0xc29c, 0xc29d, 0xc29e, 0xc29f,
  0xc2a0, 0xc484, 0xcb98, 0xc581, 0xc2a4, 0xc4bd, 0xc59a, 0xc2a7,
  0xc2a8, 0xc5a0, 0xc59e, 0xc5a4, 0xc5b9, 0xc2ad, 0xc5bd, 0xc5bb,
  0xc2b0, 0xc485, 0xcb9b, 0xc582, 0xc2b4, 0xc4be, 0xc59b, 0xcb87,
  0xc2b8, 0xc5a1, 0xc59f, 0xc5a5, 0xc5ba, 0xcb9d, 0xc5be, 0xc5bc,
  0xc594, 0xc381, 0xc382, 0xc482, 0xc384, 0xc4b9, 0xc486, 0xc387,
  0xc48c, 0xc389, 0xc498, 0xc38b, 0xc49a, 0xc38d, 0xc38e, 0xc48e,
  0xc490, 0xc583, 0xc587, 0xc393, 0xc394, 0xc590, 0xc396, 0xc397,
  0xc598, 0xc5ae, 0xc39a, 0xc5b0, 0xc39c, 0xc39d, 0xc5a2, 0xc39f,
  0xc595, 0xc3a1, 0xc3a2, 0xc483, 0xc3a4, 0xc4ba, 0xc487, 0xc3a7,
  0xc48d, 0xc3a9, 0xc499, 0xc3ab, 0xc49b, 0xc3ad, 0xc3ae, 0xc48f,
  0xc491, 0xc584, 0xc588, 0xc3b3, 0xc3b4, 0xc591, 0xc3b6, 0xc3b7,
  0xc599, 0xc5af, 0xc3ba, 0xc5b1, 0xc3bc, 0xc3bd, 0xc5a3, 0xcb99
}
the table for converting ISO-8859-2 to UTF-8.

Definition at line 68 of file textcodec.cpp.

int US_ASCII_to_UTF8_table[] [static]
 

Initial value:

{
  
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1,
  -1, -1, -1, -1, -1, -1, -1, -1
}
the table for converting US ASCII to UTF-8.

Definition at line 42 of file textcodec.cpp.


Generated on Wed Feb 5 10:43:03 2003 for Exalt by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002