File: mappings.h

package info (click to toggle)
turqstat 2.2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,768 kB
  • ctags: 1,148
  • sloc: cpp: 16,876; perl: 250; makefile: 193; sh: 8
file content (342 lines) | stat: -rw-r--r-- 14,333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
// Copyright (c) 2001 Peter Karlsson
//
// This file is auto-generated by makemappings.pl
// $Id: makemappings.pl,v 1.5 2001/06/11 16:11:39 peter Exp $
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, version 2
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#ifndef __MAPPINGS_H
#define __MAPPINGS_H

/** Structure used to represent a mapping from Unicode. */
struct reversemap
{
    unsigned short unicode; ///< Unicode code point.
    char legacy;            ///< Value in legacy encoding.
};

/** Structure used to represent the fallback mapping table. */
struct fallbackmap
{
    unsigned short unicode; ///< Unicode code point.
    const char *fallback;   ///< Fallback string representing codepoint.
};

/** Incoming conversion table for ISO 8859-1 */
extern const unsigned short iso_8859_1[256];
/** Outgoing conversion table for ISO 8859-1 */
extern const struct reversemap iso_8859_1_rev[128];
/** Length of mapping table for ISO 8859-1 */
const unsigned short iso_8859_1_rev_len = 128;

/** Incoming conversion table for ISO 8859-10 */
extern const unsigned short iso_8859_10[256];
/** Outgoing conversion table for ISO 8859-10 */
extern const struct reversemap iso_8859_10_rev[128];
/** Length of mapping table for ISO 8859-10 */
const unsigned short iso_8859_10_rev_len = 128;

/** Incoming conversion table for ISO 8859-13 */
extern const unsigned short iso_8859_13[256];
/** Outgoing conversion table for ISO 8859-13 */
extern const struct reversemap iso_8859_13_rev[128];
/** Length of mapping table for ISO 8859-13 */
const unsigned short iso_8859_13_rev_len = 128;

/** Incoming conversion table for ISO 8859-14 */
extern const unsigned short iso_8859_14[256];
/** Outgoing conversion table for ISO 8859-14 */
extern const struct reversemap iso_8859_14_rev[128];
/** Length of mapping table for ISO 8859-14 */
const unsigned short iso_8859_14_rev_len = 128;

/** Incoming conversion table for ISO 8859-15 */
extern const unsigned short iso_8859_15[256];
/** Outgoing conversion table for ISO 8859-15 */
extern const struct reversemap iso_8859_15_rev[128];
/** Length of mapping table for ISO 8859-15 */
const unsigned short iso_8859_15_rev_len = 128;

/** Incoming conversion table for ISO 8859-2 */
extern const unsigned short iso_8859_2[256];
/** Outgoing conversion table for ISO 8859-2 */
extern const struct reversemap iso_8859_2_rev[128];
/** Length of mapping table for ISO 8859-2 */
const unsigned short iso_8859_2_rev_len = 128;

/** Incoming conversion table for ISO 8859-3 */
extern const unsigned short iso_8859_3[256];
/** Outgoing conversion table for ISO 8859-3 */
extern const struct reversemap iso_8859_3_rev[121];
/** Length of mapping table for ISO 8859-3 */
const unsigned short iso_8859_3_rev_len = 121;

/** Incoming conversion table for ISO 8859-4 */
extern const unsigned short iso_8859_4[256];
/** Outgoing conversion table for ISO 8859-4 */
extern const struct reversemap iso_8859_4_rev[128];
/** Length of mapping table for ISO 8859-4 */
const unsigned short iso_8859_4_rev_len = 128;

/** Incoming conversion table for ISO 8859-5 */
extern const unsigned short iso_8859_5[256];
/** Outgoing conversion table for ISO 8859-5 */
extern const struct reversemap iso_8859_5_rev[128];
/** Length of mapping table for ISO 8859-5 */
const unsigned short iso_8859_5_rev_len = 128;

/** Incoming conversion table for ISO 8859-6 */
extern const unsigned short iso_8859_6[256];
/** Outgoing conversion table for ISO 8859-6 */
extern const struct reversemap iso_8859_6_rev[83];
/** Length of mapping table for ISO 8859-6 */
const unsigned short iso_8859_6_rev_len = 83;

/** Incoming conversion table for ISO 8859-7 */
extern const unsigned short iso_8859_7[256];
/** Outgoing conversion table for ISO 8859-7 */
extern const struct reversemap iso_8859_7_rev[122];
/** Length of mapping table for ISO 8859-7 */
const unsigned short iso_8859_7_rev_len = 122;

/** Incoming conversion table for ISO 8859-8 */
extern const unsigned short iso_8859_8[256];
/** Outgoing conversion table for ISO 8859-8 */
extern const struct reversemap iso_8859_8_rev[92];
/** Length of mapping table for ISO 8859-8 */
const unsigned short iso_8859_8_rev_len = 92;

/** Incoming conversion table for ISO 8859-9 */
extern const unsigned short iso_8859_9[256];
/** Outgoing conversion table for ISO 8859-9 */
extern const struct reversemap iso_8859_9_rev[128];
/** Length of mapping table for ISO 8859-9 */
const unsigned short iso_8859_9_rev_len = 128;

/** Incoming conversion table for Windows codepage 10000 (MacRoman) */
extern const unsigned short cp_10000[256];
/** Outgoing conversion table for Windows codepage 10000 (MacRoman) */
extern const struct reversemap cp_10000_rev[127];
/** Length of mapping table for Windows codepage 10000 (MacRoman) */
const unsigned short cp_10000_rev_len = 127;

/** Incoming conversion table for Windows codepage 1250 */
extern const unsigned short cp_1250[256];
/** Outgoing conversion table for Windows codepage 1250 */
extern const struct reversemap cp_1250_rev[128];
/** Length of mapping table for Windows codepage 1250 */
const unsigned short cp_1250_rev_len = 128;

/** Incoming conversion table for Windows codepage 1251 */
extern const unsigned short cp_1251[256];
/** Outgoing conversion table for Windows codepage 1251 */
extern const struct reversemap cp_1251_rev[128];
/** Length of mapping table for Windows codepage 1251 */
const unsigned short cp_1251_rev_len = 128;

/** Incoming conversion table for Windows codepage 1252 */
extern const unsigned short cp_1252[256];
/** Outgoing conversion table for Windows codepage 1252 */
extern const struct reversemap cp_1252_rev[128];
/** Length of mapping table for Windows codepage 1252 */
const unsigned short cp_1252_rev_len = 128;

/** Incoming conversion table for Windows codepage 1253 */
extern const unsigned short cp_1253[256];
/** Outgoing conversion table for Windows codepage 1253 */
extern const struct reversemap cp_1253_rev[125];
/** Length of mapping table for Windows codepage 1253 */
const unsigned short cp_1253_rev_len = 125;

/** Incoming conversion table for Windows codepage 1254 */
extern const unsigned short cp_1254[256];
/** Outgoing conversion table for Windows codepage 1254 */
extern const struct reversemap cp_1254_rev[128];
/** Length of mapping table for Windows codepage 1254 */
const unsigned short cp_1254_rev_len = 128;

/** Incoming conversion table for Windows codepage 1255 */
extern const unsigned short cp_1255[256];
/** Outgoing conversion table for Windows codepage 1255 */
extern const struct reversemap cp_1255_rev[117];
/** Length of mapping table for Windows codepage 1255 */
const unsigned short cp_1255_rev_len = 117;

/** Incoming conversion table for Windows codepage 1256 */
extern const unsigned short cp_1256[256];
/** Outgoing conversion table for Windows codepage 1256 */
extern const struct reversemap cp_1256_rev[128];
/** Length of mapping table for Windows codepage 1256 */
const unsigned short cp_1256_rev_len = 128;

/** Incoming conversion table for Windows codepage 1257 */
extern const unsigned short cp_1257[256];
/** Outgoing conversion table for Windows codepage 1257 */
extern const struct reversemap cp_1257_rev[126];
/** Length of mapping table for Windows codepage 1257 */
const unsigned short cp_1257_rev_len = 126;

/** Incoming conversion table for Windows codepage 1258 */
extern const unsigned short cp_1258[256];
/** Outgoing conversion table for Windows codepage 1258 */
extern const struct reversemap cp_1258_rev[128];
/** Length of mapping table for Windows codepage 1258 */
const unsigned short cp_1258_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 437 */
extern const unsigned short cp_437[256];
/** Outgoing conversion table for MS-DOS codepage 437 */
extern const struct reversemap cp_437_rev[128];
/** Length of mapping table for MS-DOS codepage 437 */
const unsigned short cp_437_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 737 */
extern const unsigned short cp_737[256];
/** Outgoing conversion table for MS-DOS codepage 737 */
extern const struct reversemap cp_737_rev[128];
/** Length of mapping table for MS-DOS codepage 737 */
const unsigned short cp_737_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 775 */
extern const unsigned short cp_775[256];
/** Outgoing conversion table for MS-DOS codepage 775 */
extern const struct reversemap cp_775_rev[128];
/** Length of mapping table for MS-DOS codepage 775 */
const unsigned short cp_775_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 850 */
extern const unsigned short cp_850[256];
/** Outgoing conversion table for MS-DOS codepage 850 */
extern const struct reversemap cp_850_rev[128];
/** Length of mapping table for MS-DOS codepage 850 */
const unsigned short cp_850_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 852 */
extern const unsigned short cp_852[256];
/** Outgoing conversion table for MS-DOS codepage 852 */
extern const struct reversemap cp_852_rev[128];
/** Length of mapping table for MS-DOS codepage 852 */
const unsigned short cp_852_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 857 */
extern const unsigned short cp_857[256];
/** Outgoing conversion table for MS-DOS codepage 857 */
extern const struct reversemap cp_857_rev[125];
/** Length of mapping table for MS-DOS codepage 857 */
const unsigned short cp_857_rev_len = 125;

/** Incoming conversion table for MS-DOS codepage 860 */
extern const unsigned short cp_860[256];
/** Outgoing conversion table for MS-DOS codepage 860 */
extern const struct reversemap cp_860_rev[128];
/** Length of mapping table for MS-DOS codepage 860 */
const unsigned short cp_860_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 861 */
extern const unsigned short cp_861[256];
/** Outgoing conversion table for MS-DOS codepage 861 */
extern const struct reversemap cp_861_rev[128];
/** Length of mapping table for MS-DOS codepage 861 */
const unsigned short cp_861_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 862 */
extern const unsigned short cp_862[256];
/** Outgoing conversion table for MS-DOS codepage 862 */
extern const struct reversemap cp_862_rev[128];
/** Length of mapping table for MS-DOS codepage 862 */
const unsigned short cp_862_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 863 */
extern const unsigned short cp_863[256];
/** Outgoing conversion table for MS-DOS codepage 863 */
extern const struct reversemap cp_863_rev[128];
/** Length of mapping table for MS-DOS codepage 863 */
const unsigned short cp_863_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 864 */
extern const unsigned short cp_864[256];
/** Outgoing conversion table for MS-DOS codepage 864 */
extern const struct reversemap cp_864_rev[126];
/** Length of mapping table for MS-DOS codepage 864 */
const unsigned short cp_864_rev_len = 126;

/** Incoming conversion table for MS-DOS codepage 865 */
extern const unsigned short cp_865[256];
/** Outgoing conversion table for MS-DOS codepage 865 */
extern const struct reversemap cp_865_rev[128];
/** Length of mapping table for MS-DOS codepage 865 */
const unsigned short cp_865_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 866 */
extern const unsigned short cp_866[256];
/** Outgoing conversion table for MS-DOS codepage 866 */
extern const struct reversemap cp_866_rev[128];
/** Length of mapping table for MS-DOS codepage 866 */
const unsigned short cp_866_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 869 */
extern const unsigned short cp_869[256];
/** Outgoing conversion table for MS-DOS codepage 869 */
extern const struct reversemap cp_869_rev[128];
/** Length of mapping table for MS-DOS codepage 869 */
const unsigned short cp_869_rev_len = 128;

/** Incoming conversion table for MS-DOS codepage 874 */
extern const unsigned short cp_874[256];
/** Outgoing conversion table for MS-DOS codepage 874 */
extern const struct reversemap cp_874_rev[120];
/** Length of mapping table for MS-DOS codepage 874 */
const unsigned short cp_874_rev_len = 120;

/** Incoming conversion table for ISO-IR-11 (Swedish/Finnish 7-bit) */
extern const unsigned short iso_ir_11[256];
/** Outgoing conversion table for ISO-IR-11 (Swedish/Finnish 7-bit) */
extern const struct reversemap iso_ir_11_rev[10];
/** Length of mapping table for ISO-IR-11 (Swedish/Finnish 7-bit) */
const unsigned short iso_ir_11_rev_len = 10;

/** Incoming conversion table for ISO-IR-60 (Norwegian/Danish 7-bit) */
extern const unsigned short iso_ir_60[256];
/** Outgoing conversion table for ISO-IR-60 (Norwegian/Danish 7-bit) */
extern const struct reversemap iso_ir_60_rev[6];
/** Length of mapping table for ISO-IR-60 (Norwegian/Danish 7-bit) */
const unsigned short iso_ir_60_rev_len = 6;

/** Incoming conversion table for KOI8-R */
extern const unsigned short koi8r[256];
/** Outgoing conversion table for KOI8-R */
extern const struct reversemap koi8r_rev[128];
/** Length of mapping table for KOI8-R */
const unsigned short koi8r_rev_len = 128;

/** Incoming conversion table for KOI8-U */
extern const unsigned short koi8u[256];
/** Outgoing conversion table for KOI8-U */
extern const struct reversemap koi8u_rev[128];
/** Length of mapping table for KOI8-U */
const unsigned short koi8u_rev_len = 128;

/** Incoming conversion table for MacRoman */
extern const unsigned short macroman[256];
/** Outgoing conversion table for MacRoman */
extern const struct reversemap macroman_rev[128];
/** Length of mapping table for MacRoman */
const unsigned short macroman_rev_len = 128;

/** Fallback mapping table */
extern const struct fallbackmap fallback[1765];
/** Length of fallback mapping */
const unsigned short fallbackmap_len = 1765;

#endif