65 {
"Iscii-Dev", 0x900 },
66 {
"Iscii-Bng", 0x980 },
67 {
"Iscii-Pnj", 0xa00 },
68 {
"Iscii-Gjr", 0xa80 },
69 {
"Iscii-Ori", 0xb00 },
70 {
"Iscii-Tml", 0xb80 },
71 {
"Iscii-Tlg", 0xc00 },
72 {
"Iscii-Knd", 0xc80 },
73 {
"Iscii-Mlm", 0xd00 }
82 return codecs[idx].
name;
95 0x00, 0x01, 0x02, 0x03,
96 0x05, 0x06, 0x07, 0x08,
97 0x09, 0x0a, 0x0b, 0x0e,
98 0x0f, 0x20, 0x0d, 0x12,
100 0x13, 0x14, 0x11, 0x15,
101 0x16, 0x17, 0x18, 0x19,
102 0x1a, 0x1b, 0x1c, 0x1d,
103 0x1e, 0x1f, 0x20, 0x21,
105 0x22, 0x23, 0x24, 0x25,
106 0x26, 0x27, 0x28, 0x29,
107 0x2a, 0x2b, 0x2c, 0x2d,
108 0x2e, 0x2f, 0x5f, 0x30,
110 0x31, 0x32, 0x33, 0x34,
111 0x35, 0x36, 0x37, 0x38,
112 0x39,
inv, 0x3e, 0x3f,
113 0x40, 0x41, 0x42, 0x43,
115 0x46, 0x47, 0x48, 0x45,
116 0x4a, 0x4b, 0x4c, 0x49,
117 0x4d, 0x3c, 0x64, 0x00,
118 0x00, 0x00, 0x00, 0x00,
120 0x00, 0x66, 0x67, 0x68,
121 0x69, 0x6a, 0x6b, 0x6c,
122 0x6d, 0x6e, 0x6f, 0x00,
123 0x00, 0x00, 0x00, 0x00
127 0x00, 0xa1, 0xa2, 0xa3,
128 0x00, 0xa4, 0xa5, 0xa6,
129 0xa7, 0xa8, 0xa9, 0xaa,
130 0x00, 0xae, 0xab, 0xac,
132 0xad, 0xb2, 0xaf, 0xb0,
133 0xb1, 0xb3, 0xb4, 0xb5,
134 0xb6, 0xb7, 0xb8, 0xb9,
135 0xba, 0xbb, 0xbc, 0xbd,
137 0xbe, 0xbf, 0xc0, 0xc1,
138 0xc2, 0xc3, 0xc4, 0xc5,
139 0xc6, 0xc7, 0xc8, 0xc9,
140 0xca, 0xcb, 0xcc, 0xcd,
142 0xcf, 0xd0, 0xd1, 0xd2,
143 0xd3, 0xd4, 0xd5, 0xd6,
144 0xd7, 0xd8, 0x00, 0x00,
145 0xe9, 0x00, 0xda, 0xdb,
147 0xdc, 0xdd, 0xde, 0xdf,
148 0x00, 0xe3, 0xe0, 0xe1,
149 0xe2, 0xe7, 0xe4, 0xe5,
150 0xe6, 0xe8, 0x00, 0x00,
152 0x00, 0x00, 0x00, 0x00,
153 0x00, 0x00, 0x00, 0x00,
154 0x01, 0x02, 0x03, 0x04,
155 0x05, 0x06, 0x07, 0xce,
157 0x00, 0x00, 0x00, 0x00,
158 0xea, 0x08, 0xf1, 0xf2,
159 0xf3, 0xf4, 0xf5, 0xf6,
160 0xf7, 0xf8, 0xf9, 0xfa,
162 0x00, 0x00, 0x00, 0x00,
163 0x00, 0x00, 0x00, 0x00,
164 0x00, 0x00, 0x00, 0x00,
165 0x00, 0x00, 0x00, 0x00
183 char replacement =
'?';
186 if (state->
flags & ConvertInvalidToNull)
198 for (
int i =0; i < len; ++i) {
204 if(codePoint < 0xA0) {
205 *ch++ =
static_cast<uchar>(codePoint);
209 const int pos = codePoint -
base;
210 if (pos > 0 && pos < 0x80) {
223 if (uc[i].unicode() == 0x200c) {
227 }
else if (uc[i].unicode() == 0x200d) {
236 halant = (pos == 0x4d);
259 for (
int i = 0; i < len; ++i) {
265 if (halant && (c ==
inv || c == 0xe9)) {
268 *uc++ =
QChar(0x200d);
269 }
else if (halant && c == 0xe8) {
271 *uc++ =
QChar(0x200c);
273 *uc++ =
QChar(c+base);
276 halant = ((
uchar)chars[i] == 0xe8);
288 #endif // QT_NO_CODECS void truncate(int pos)
Truncates the byte array at index position pos.
static const uchar uni_to_iscii_table[0x80]
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
The QByteArray class provides an array of bytes.
static const Codecs codecs[]
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
QChar * data()
Returns a pointer to the data stored in the QString.
#define QT_BEGIN_NAMESPACE
This macro expands to.
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
int mibEnum() const
Subclasses of QTextCodec must reimplement this function.
static const uchar iscii_to_uni_table[0x60]
void resize(int size)
Sets the size of the string to size characters.
static const uchar uni_to_iscii_pairs[]
QString convertToUnicode(const char *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
QByteArray convertFromUnicode(const QChar *, int, ConverterState *) const
QTextCodec subclasses must reimplement this function.
QByteArray name() const
QTextCodec subclasses must reimplement this function.