#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... |
This file contains definitions of TextCodec class methods.
Definition in file textcodec.cpp.
|
Value: if (!xmlchar_cstrcmp(_encGiven_, _enc_)) \ return _mib_; \
Definition at line 129 of file textcodec.cpp. Referenced by TextCodec::getMIB. |
|
Value: if (_mib_ == _mibGiven_) \ return _size_;
Definition at line 116 of file textcodec.cpp. Referenced by TextCodec::suggestAlphabetBaseSize. |
|
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]; \ }
Definition at line 96 of file textcodec.cpp. Referenced by TextCodec::fillInMapArray. |
|
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 }
Definition at line 68 of file textcodec.cpp. |
|
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 }
Definition at line 42 of file textcodec.cpp. |