1 |
207 |
jeremybenn |
#include <newlib.h>
|
2 |
|
|
#include <wchar.h>
|
3 |
|
|
|
4 |
|
|
#ifdef _MB_CAPABLE
|
5 |
|
|
extern char *__locale_charset ();
|
6 |
|
|
|
7 |
|
|
#ifdef _MB_EXTENDED_CHARSETS_ISO
|
8 |
|
|
/* Tables for the ISO-8859-x to UTF conversion. The first index into the
|
9 |
|
|
table is a value computed from the value x (function __iso_8859_index),
|
10 |
|
|
the second index is the value of the incoming character - 0xa0.
|
11 |
|
|
Values < 0xa0 don't have to be converted anyway. */
|
12 |
|
|
wchar_t __iso_8859_conv[14][0x60] = {
|
13 |
|
|
/* ISO-8859-2 */
|
14 |
|
|
{ 0xa0, 0x104, 0x2d8, 0x141, 0xa4, 0x13d, 0x15a, 0xa7,
|
15 |
|
|
0xa8, 0x160, 0x15e, 0x164, 0x179, 0xad, 0x17d, 0x17b,
|
16 |
|
|
0xb0, 0x105, 0x2db, 0x142, 0xb4, 0x13e, 0x15b, 0x2c7,
|
17 |
|
|
0xb8, 0x161, 0x15f, 0x165, 0x17a, 0x2dd, 0x17e, 0x17c,
|
18 |
|
|
0x154, 0xc1, 0xc2, 0x102, 0xc4, 0x139, 0x106, 0xc7,
|
19 |
|
|
0x10c, 0xc9, 0x118, 0xcb, 0x11a, 0xcd, 0xce, 0x10e,
|
20 |
|
|
0x110, 0x143, 0x147, 0xd3, 0xd4, 0x150, 0xd6, 0xd7,
|
21 |
|
|
0x158, 0x16e, 0xda, 0x170, 0xdc, 0xdd, 0x162, 0xdf,
|
22 |
|
|
0x155, 0xe1, 0xe2, 0x103, 0xe4, 0x13a, 0x107, 0xe7,
|
23 |
|
|
0x10d, 0xe9, 0x119, 0xeb, 0x11b, 0xed, 0xee, 0x10f,
|
24 |
|
|
0x111, 0x144, 0x148, 0xf3, 0xf4, 0x151, 0xf6, 0xf7,
|
25 |
|
|
0x159, 0x16f, 0xfa, 0x171, 0xfc, 0xfd, 0x163, 0x2d9 },
|
26 |
|
|
/* ISO-8859-3 */
|
27 |
|
|
{ 0xa0, 0x126, 0x2d8, 0xa3, 0xa4, 0xf7f5, 0x124, 0xa7,
|
28 |
|
|
0xa8, 0x130, 0x15e, 0x11e, 0x134, 0xad, 0xf7f6, 0x17b,
|
29 |
|
|
0xb0, 0x127, 0xb2, 0xb3, 0xb4, 0xb5, 0x125, 0xb7,
|
30 |
|
|
0xb8, 0x131, 0x15f, 0x11f, 0x135, 0xbd, 0xf7f7, 0x17c,
|
31 |
|
|
0xc0, 0xc1, 0xc2, 0xf7f8, 0xc4, 0x10a, 0x108, 0xc7,
|
32 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
33 |
|
|
0xf7f9, 0xd1, 0xd2, 0xd3, 0xd4, 0x120, 0xd6, 0xd7,
|
34 |
|
|
0x11c, 0xd9, 0xda, 0xdb, 0xdc, 0x16c, 0x15c, 0xdf,
|
35 |
|
|
0xe0, 0xe1, 0xe2, 0xf7fa, 0xe4, 0x10b, 0x109, 0xe7,
|
36 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
37 |
|
|
0xf7fb, 0xf1, 0xf2, 0xf3, 0xf4, 0x121, 0xf6, 0xf7,
|
38 |
|
|
0x11d, 0xf9, 0xfa, 0xfb, 0xfc, 0x16d, 0x15d, 0x2d9 },
|
39 |
|
|
/* ISO-8859-4 */
|
40 |
|
|
{ 0xa0, 0x104, 0x138, 0x156, 0xa4, 0x128, 0x13b, 0xa7,
|
41 |
|
|
0xa8, 0x160, 0x112, 0x122, 0x166, 0xad, 0x17d, 0xaf,
|
42 |
|
|
0xb0, 0x105, 0x2db, 0x157, 0xb4, 0x129, 0x13c, 0x2c7,
|
43 |
|
|
0xb8, 0x161, 0x113, 0x123, 0x167, 0x14a, 0x17e, 0x14b,
|
44 |
|
|
0x100, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0x12e,
|
45 |
|
|
0x10c, 0xc9, 0x118, 0xcb, 0x116, 0xcd, 0xce, 0x12a,
|
46 |
|
|
0x110, 0x145, 0x14c, 0x136, 0xd4, 0xd5, 0xd6, 0xd7,
|
47 |
|
|
0xd8, 0x172, 0xda, 0xdb, 0xdc, 0x168, 0x16a, 0xdf,
|
48 |
|
|
0x101, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0x12f,
|
49 |
|
|
0x10d, 0xe9, 0x119, 0xeb, 0x117, 0xed, 0xee, 0x12b,
|
50 |
|
|
0x111, 0x146, 0x14d, 0x137, 0xf4, 0xf5, 0xf6, 0xf7,
|
51 |
|
|
0xf8, 0x173, 0xfa, 0xfb, 0xfc, 0x169, 0x16b, 0x2d9 },
|
52 |
|
|
/* ISO-8859-5 */
|
53 |
|
|
{ 0xa0, 0x401, 0x402, 0x403, 0x404, 0x405, 0x406, 0x407,
|
54 |
|
|
0x408, 0x409, 0x40a, 0x40b, 0x40c, 0xad, 0x40e, 0x40f,
|
55 |
|
|
0x410, 0x411, 0x412, 0x413, 0x414, 0x415, 0x416, 0x417,
|
56 |
|
|
0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e, 0x41f,
|
57 |
|
|
0x420, 0x421, 0x422, 0x423, 0x424, 0x425, 0x426, 0x427,
|
58 |
|
|
0x428, 0x429, 0x42a, 0x42b, 0x42c, 0x42d, 0x42e, 0x42f,
|
59 |
|
|
0x430, 0x431, 0x432, 0x433, 0x434, 0x435, 0x436, 0x437,
|
60 |
|
|
0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e, 0x43f,
|
61 |
|
|
0x440, 0x441, 0x442, 0x443, 0x444, 0x445, 0x446, 0x447,
|
62 |
|
|
0x448, 0x449, 0x44a, 0x44b, 0x44c, 0x44d, 0x44e, 0x44f,
|
63 |
|
|
0x2116, 0x451, 0x452, 0x453, 0x454, 0x455, 0x456, 0x457,
|
64 |
|
|
0x458, 0x459, 0x45a, 0x45b, 0x45c, 0xa7, 0x45e, 0x45f },
|
65 |
|
|
/* ISO-8859-6 */
|
66 |
|
|
{ 0xa0, 0xf7c8, 0xf7c9, 0xf7ca, 0xa4, 0xf7cb, 0xf7cc, 0xf7cd,
|
67 |
|
|
0xf7ce, 0xf7cf, 0xf7d0, 0xf7d1, 0x60c, 0xad, 0xf7d2, 0xf7d3,
|
68 |
|
|
0xf7d4, 0xf7d5, 0xf7d6, 0xf7d7, 0xf7d8, 0xf7d9, 0xf7da, 0xf7db,
|
69 |
|
|
0xf7dc, 0xf7dd, 0xf7de, 0x61b, 0xf7df, 0xf7e0, 0xf7e1, 0x61f,
|
70 |
|
|
0xf7e2, 0x621, 0x622, 0x623, 0x624, 0x625, 0x626, 0x627,
|
71 |
|
|
0x628, 0x629, 0x62a, 0x62b, 0x62c, 0x62d, 0x62e, 0x62f,
|
72 |
|
|
0x630, 0x631, 0x632, 0x633, 0x634, 0x635, 0x636, 0x637,
|
73 |
|
|
0x638, 0x639, 0x63a, 0xf7e3, 0xf7e4, 0xf7e5, 0xf7e6, 0xf7e7,
|
74 |
|
|
0x640, 0x641, 0x642, 0x643, 0x644, 0x645, 0x646, 0x647,
|
75 |
|
|
0x648, 0x649, 0x64a, 0x64b, 0x64c, 0x64d, 0x64e, 0x64f,
|
76 |
|
|
0x650, 0x651, 0x652, 0xf7e8, 0xf7e9, 0xf7ea, 0xf7eb, 0xf7ec,
|
77 |
|
|
0xf7ed, 0xf7ee, 0xf7ef, 0xf7f0, 0xf7f1, 0xf7f2, 0xf7f3, 0xf7f4 },
|
78 |
|
|
/* ISO-8859-7 */
|
79 |
|
|
{ 0xa0, 0x2bd, 0x2bc, 0xa3, 0xf7c2, 0xf7c3, 0xa6, 0xa7,
|
80 |
|
|
0xa8, 0xa9, 0xf7c4, 0xab, 0xac, 0xad, 0xf7c5, 0x2015,
|
81 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0x384, 0x385, 0x386, 0xb7,
|
82 |
|
|
0x388, 0x389, 0x38a, 0xbb, 0x38c, 0xbd, 0x38e, 0x38f,
|
83 |
|
|
0x390, 0x391, 0x392, 0x393, 0x394, 0x395, 0x396, 0x397,
|
84 |
|
|
0x398, 0x399, 0x39a, 0x39b, 0x39c, 0x39d, 0x39e, 0x39f,
|
85 |
|
|
0x3a0, 0x3a1, 0xf7c6, 0x3a3, 0x3a4, 0x3a5, 0x3a6, 0x3a7,
|
86 |
|
|
0x3a8, 0x3a9, 0x3aa, 0x3ab, 0x3ac, 0x3ad, 0x3ae, 0x3af,
|
87 |
|
|
0x3b0, 0x3b1, 0x3b2, 0x3b3, 0x3b4, 0x3b5, 0x3b6, 0x3b7,
|
88 |
|
|
0x3b8, 0x3b9, 0x3ba, 0x3bb, 0x3bc, 0x3bd, 0x3be, 0x3bf,
|
89 |
|
|
0x3c0, 0x3c1, 0x3c2, 0x3c3, 0x3c4, 0x3c5, 0x3c6, 0x3c7,
|
90 |
|
|
0x3c8, 0x3c9, 0x3ca, 0x3cb, 0x3cc, 0x3cd, 0x3ce, 0xf7c7 },
|
91 |
|
|
/* ISO-8859-8 */
|
92 |
|
|
{ 0xa0, 0xf79c, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
93 |
|
|
0xa8, 0xa9, 0xd7, 0xab, 0xac, 0xad, 0xae, 0x203e,
|
94 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
95 |
|
|
0xb8, 0xb9, 0xf7, 0xbb, 0xbc, 0xbd, 0xbe, 0xf79d,
|
96 |
|
|
0xf79e, 0xf79f, 0xf7a0, 0xf7a1, 0xf7a2, 0xf7a3, 0xf7a4, 0xf7a5,
|
97 |
|
|
0xf7a6, 0xf7a7, 0xf7a8, 0xf7a9, 0xf7aa, 0xf7ab, 0xf7ac, 0xf7ad,
|
98 |
|
|
0xf7ae, 0xf7af, 0xf7b0, 0xf7b1, 0xf7b2, 0xf7b3, 0xf7b4, 0xf7b5,
|
99 |
|
|
0xf7b6, 0xf7b7, 0xf7b8, 0xf7b9, 0xf7ba, 0xf7bb, 0xf7bc, 0x2017,
|
100 |
|
|
0x5d0, 0x5d1, 0x5d2, 0x5d3, 0x5d4, 0x5d5, 0x5d6, 0x5d7,
|
101 |
|
|
0x5d8, 0x5d9, 0x5da, 0x5db, 0x5dc, 0x5dd, 0x5de, 0x5df,
|
102 |
|
|
0x5e0, 0x5e1, 0x5e2, 0x5e3, 0x5e4, 0x5e5, 0x5e6, 0x5e7,
|
103 |
|
|
0x5e8, 0x5e9, 0x5ea, 0xf7bd, 0xf7be, 0xf7bf, 0xf7c0, 0xf7c1 },
|
104 |
|
|
/* ISO-8859-9 */
|
105 |
|
|
{ 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
106 |
|
|
0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
107 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
108 |
|
|
0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
|
109 |
|
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
|
110 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
111 |
|
|
0x11e, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
|
112 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x130, 0x15e, 0xdf,
|
113 |
|
|
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
|
114 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
115 |
|
|
0x11f, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
|
116 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x131, 0x15f, 0xff },
|
117 |
|
|
/* ISO-8859-10 */
|
118 |
|
|
{ 0xa0, 0x104, 0x112, 0x122, 0x12a, 0x128, 0x136, 0xa7,
|
119 |
|
|
0x13b, 0x110, 0x160, 0x166, 0x17d, 0xad, 0x16a, 0x14a,
|
120 |
|
|
0xb0, 0x105, 0x113, 0x123, 0x12b, 0x129, 0x137, 0xb7,
|
121 |
|
|
0x13c, 0x111, 0x161, 0x167, 0x17e, 0x2015, 0x16b, 0x14b,
|
122 |
|
|
0x100, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0x12e,
|
123 |
|
|
0x10c, 0xc9, 0x118, 0xcb, 0x116, 0xcd, 0xce, 0xcf,
|
124 |
|
|
0xd0, 0x145, 0x14c, 0xd3, 0xd4, 0xd5, 0xd6, 0x168,
|
125 |
|
|
0xd8, 0x172, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
|
126 |
|
|
0x101, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0x12f,
|
127 |
|
|
0x10d, 0xe9, 0x119, 0xeb, 0x117, 0xed, 0xee, 0xef,
|
128 |
|
|
0xf0, 0x146, 0x14d, 0xf3, 0xf4, 0xf5, 0xf6, 0x169,
|
129 |
|
|
0xf8, 0x173, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x138 },
|
130 |
|
|
/* ISO-8859-11 */
|
131 |
|
|
{ 0xa0, 0xe01, 0xe02, 0xe03, 0xe04, 0xe05, 0xe06, 0xe07,
|
132 |
|
|
0xe08, 0xe09, 0xe0a, 0xe0b, 0xe0c, 0xe0d, 0xe0e, 0xe0f,
|
133 |
|
|
0xe10, 0xe11, 0xe12, 0xe13, 0xe14, 0xe15, 0xe16, 0xe17,
|
134 |
|
|
0xe18, 0xe19, 0xe1a, 0xe1b, 0xe1c, 0xe1d, 0xe1e, 0xe1f,
|
135 |
|
|
0xe20, 0xe21, 0xe22, 0xe23, 0xe24, 0xe25, 0xe26, 0xe27,
|
136 |
|
|
0xe28, 0xe29, 0xe2a, 0xe2b, 0xe2c, 0xe2d, 0xe2e, 0xe2f,
|
137 |
|
|
0xe30, 0xe31, 0xe32, 0xe33, 0xe34, 0xe35, 0xe36, 0xe37,
|
138 |
|
|
0xe38, 0xe39, 0xe3a, 0xdb, 0xdc, 0xdd, 0xde, 0xe3f,
|
139 |
|
|
0xe40, 0xe41, 0xe42, 0xe43, 0xe44, 0xe45, 0xe46, 0xe47,
|
140 |
|
|
0xe48, 0xe49, 0xe4a, 0xe4b, 0xe4c, 0xe4d, 0xe4e, 0xe4f,
|
141 |
|
|
0xe50, 0xe51, 0xe52, 0xe53, 0xe54, 0xe55, 0xe56, 0xe57,
|
142 |
|
|
0xe58, 0xe59, 0xe5a, 0xe5b, 0xe31, 0xe34, 0xe47, 0xff },
|
143 |
|
|
/* ISO-8859-12 doesn't exist. The below code decrements the index
|
144 |
|
|
into the table by one for ISO numbers > 12. */
|
145 |
|
|
/* ISO-8859-13 */
|
146 |
|
|
{ 0xa0, 0x201d, 0xa2, 0xa3, 0xa4, 0x201e, 0xa6, 0xa7,
|
147 |
|
|
0xd8, 0xa9, 0x156, 0xab, 0xac, 0xad, 0xae, 0xc6,
|
148 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0x201c, 0xb5, 0xb6, 0xb7,
|
149 |
|
|
0xf8, 0xb9, 0x157, 0xbb, 0xbc, 0xbd, 0xbe, 0xe6,
|
150 |
|
|
0x104, 0x12e, 0x100, 0x106, 0xc4, 0xc5, 0x118, 0x112,
|
151 |
|
|
0x10c, 0xc9, 0x179, 0x116, 0x122, 0x136, 0x12a, 0x13b,
|
152 |
|
|
0x160, 0x143, 0x145, 0xd3, 0x14c, 0xd5, 0xd6, 0xd7,
|
153 |
|
|
0x172, 0x141, 0x15a, 0x16a, 0xdc, 0x17b, 0x17d, 0xdf,
|
154 |
|
|
0x105, 0x12f, 0x101, 0x107, 0xe4, 0xe5, 0x119, 0x113,
|
155 |
|
|
0x10d, 0xe9, 0x17a, 0x117, 0x123, 0x137, 0x12b, 0x13c,
|
156 |
|
|
0x161, 0x144, 0x146, 0xf3, 0x14d, 0xf5, 0xf6, 0xf7,
|
157 |
|
|
0x173, 0x142, 0x15b, 0x16b, 0xfc, 0x17c, 0x17e, 0x2019 },
|
158 |
|
|
/* ISO-8859-14 */
|
159 |
|
|
{ 0xa0, 0x1e02, 0x1e03, 0xa3, 0x10a, 0x10b, 0x1e0a, 0xa7,
|
160 |
|
|
0x1e80, 0xa9, 0x1e82, 0x1e0b, 0x1ef2, 0xad, 0xae, 0x178,
|
161 |
|
|
0x1e1e, 0x1e1f, 0x120, 0x121, 0x1e40, 0x1e41, 0xb6, 0x1e56,
|
162 |
|
|
0x1e81, 0x1e57, 0x1e83, 0x1e60, 0x1ef3, 0x1e84, 0x1e85, 0x1e61,
|
163 |
|
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
|
164 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
165 |
|
|
0x174, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0x1e6a,
|
166 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0x176, 0xdf,
|
167 |
|
|
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
|
168 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
169 |
|
|
0x175, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0x1e6b,
|
170 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0x177, 0xff },
|
171 |
|
|
/* ISO-8859-15 */
|
172 |
|
|
{ 0xa0, 0xa1, 0xa2, 0xa3, 0x20ac, 0xa5, 0x160, 0xa7,
|
173 |
|
|
0x161, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
174 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0x17d, 0xb5, 0xb6, 0xb7,
|
175 |
|
|
0x17e, 0xb9, 0xba, 0xbb, 0x152, 0x153, 0x178, 0xbf,
|
176 |
|
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
|
177 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
178 |
|
|
0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
|
179 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
|
180 |
|
|
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
|
181 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
182 |
|
|
0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
|
183 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff },
|
184 |
|
|
/* ISO-8859-16 */
|
185 |
|
|
{ 0xa0, 0x104, 0x105, 0x141, 0x20ac, 0x201e, 0x160, 0xa7,
|
186 |
|
|
0x161, 0xa9, 0x218, 0xab, 0x179, 0xad, 0x17a, 0x17b,
|
187 |
|
|
0xb0, 0xb1, 0x10c, 0x142, 0x17d, 0x201d, 0xb6, 0xb7,
|
188 |
|
|
0x17e, 0x10d, 0x219, 0xbb, 0x152, 0x153, 0x178, 0x17c,
|
189 |
|
|
0xc0, 0xc1, 0xc2, 0x102, 0xc4, 0x106, 0xc6, 0xc7,
|
190 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
191 |
|
|
0x110, 0x143, 0xd2, 0xd3, 0xd4, 0x150, 0xd6, 0x15a,
|
192 |
|
|
0x170, 0xd9, 0xda, 0xdb, 0xdc, 0x118, 0x21a, 0xdf,
|
193 |
|
|
0xe0, 0xe1, 0xe2, 0x103, 0xe4, 0x107, 0xe6, 0xe7,
|
194 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
195 |
|
|
0x111, 0x144, 0xf2, 0xf3, 0xf4, 0x151, 0xf6, 0x15b,
|
196 |
|
|
0x171, 0xf9, 0xfa, 0xfb, 0xfc, 0x119, 0x21b, 0xff }
|
197 |
|
|
};
|
198 |
|
|
#endif /* _MB_EXTENDED_CHARSETS_ISO */
|
199 |
|
|
|
200 |
|
|
#ifdef _MB_EXTENDED_CHARSETS_WINDOWS
|
201 |
|
|
/* Tables for the Windows default singlebyte ANSI codepage conversion.
|
202 |
|
|
The first index into the table is a value computed from the codepage
|
203 |
|
|
value (function __cp_index), the second index is the value of the
|
204 |
|
|
incoming character - 0x80.
|
205 |
|
|
Values < 0x80 don't have to be converted anyway. */
|
206 |
|
|
wchar_t __cp_conv[24][0x80] = {
|
207 |
|
|
/* CP437 */
|
208 |
|
|
{ 0xc7, 0xfc, 0xe9, 0xe2, 0xe4, 0xe0, 0xe5, 0xe7,
|
209 |
|
|
0xea, 0xeb, 0xe8, 0xef, 0xee, 0xec, 0xc4, 0xc5,
|
210 |
|
|
0xc9, 0xe6, 0xc6, 0xf4, 0xf6, 0xf2, 0xfb, 0xf9,
|
211 |
|
|
0xff, 0xd6, 0xdc, 0xa2, 0xa3, 0xa5, 0x20a7, 0x192,
|
212 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0xf1, 0xd1, 0xaa, 0xba,
|
213 |
|
|
0xbf, 0x2310, 0xac, 0xbd, 0xbc, 0xa1, 0xab, 0xbb,
|
214 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
215 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
216 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
217 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
218 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
219 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
220 |
|
|
0x3b1, 0xdf, 0x393, 0x3c0, 0x3a3, 0x3c3, 0xb5, 0x3c4,
|
221 |
|
|
0x3a6, 0x398, 0x3a9, 0x3b4, 0x221e, 0x3c6, 0x3b5, 0x2229,
|
222 |
|
|
0x2261, 0xb1, 0x2265, 0x2264, 0x2320, 0x2321, 0xf7, 0x2248,
|
223 |
|
|
0xb0, 0x2219, 0xb7, 0x221a, 0x207f, 0xb2, 0x25a0, 0xa0 },
|
224 |
|
|
/* CP720 */
|
225 |
|
|
{ 0x80, 0x81, 0xe9, 0xe2, 0x84, 0xe0, 0x86, 0xe7,
|
226 |
|
|
0xea, 0xeb, 0xe8, 0xef, 0xee, 0x8d, 0x8e, 0x8f,
|
227 |
|
|
0x90, 0x651, 0x652, 0xf4, 0xa4, 0x640, 0xfb, 0xf9,
|
228 |
|
|
0x621, 0x622, 0x623, 0x624, 0xa3, 0x625, 0x626, 0x627,
|
229 |
|
|
0x628, 0x629, 0x62a, 0x62b, 0x62c, 0x62d, 0x62e, 0x62f,
|
230 |
|
|
0x630, 0x631, 0x632, 0x633, 0x634, 0x635, 0xab, 0xbb,
|
231 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
232 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
233 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
234 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
235 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
236 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
237 |
|
|
0x636, 0x637, 0x638, 0x639, 0x63a, 0x641, 0xb5, 0x642,
|
238 |
|
|
0x643, 0x644, 0x645, 0x646, 0x647, 0x648, 0x649, 0x64a,
|
239 |
|
|
0x2261, 0x64b, 0x64c, 0x64d, 0x64e, 0x64f, 0x650, 0x2248,
|
240 |
|
|
0xb0, 0x2219, 0xb7, 0x221a, 0x207f, 0xb2, 0x25a0, 0xa0 },
|
241 |
|
|
/* CP737 */
|
242 |
|
|
{ 0x391, 0x392, 0x393, 0x394, 0x395, 0x396, 0x397, 0x398,
|
243 |
|
|
0x399, 0x39a, 0x39b, 0x39c, 0x39d, 0x39e, 0x39f, 0x3a0,
|
244 |
|
|
0x3a1, 0x3a3, 0x3a4, 0x3a5, 0x3a6, 0x3a7, 0x3a8, 0x3a9,
|
245 |
|
|
0x3b1, 0x3b2, 0x3b3, 0x3b4, 0x3b5, 0x3b6, 0x3b7, 0x3b8,
|
246 |
|
|
0x3b9, 0x3ba, 0x3bb, 0x3bc, 0x3bd, 0x3be, 0x3bf, 0x3c0,
|
247 |
|
|
0x3c1, 0x3c3, 0x3c2, 0x3c4, 0x3c5, 0x3c6, 0x3c7, 0x3c8,
|
248 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
249 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
250 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
251 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
252 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
253 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
254 |
|
|
0x3c9, 0x3ac, 0x3ad, 0x3ae, 0x3ca, 0x3af, 0x3cc, 0x3cd,
|
255 |
|
|
0x3cb, 0x3ce, 0x386, 0x388, 0x389, 0x38a, 0x38c, 0x38e,
|
256 |
|
|
0x38f, 0xb1, 0x2265, 0x2264, 0x3aa, 0x3ab, 0xf7, 0x2248,
|
257 |
|
|
0xb0, 0x2219, 0xb7, 0x221a, 0x207f, 0xb2, 0x25a0, 0xa0 },
|
258 |
|
|
/* CP775 */
|
259 |
|
|
{ 0x106, 0xfc, 0xe9, 0x101, 0xe4, 0x123, 0xe5, 0x107,
|
260 |
|
|
0x142, 0x113, 0x156, 0x157, 0x12b, 0x179, 0xc4, 0xc5,
|
261 |
|
|
0xc9, 0xe6, 0xc6, 0x14d, 0xf6, 0x122, 0xa2, 0x15a,
|
262 |
|
|
0x15b, 0xd6, 0xdc, 0xf8, 0xa3, 0xd8, 0xd7, 0xa4,
|
263 |
|
|
0x100, 0x12a, 0xf3, 0x17b, 0x17c, 0x17a, 0x201d, 0xa6,
|
264 |
|
|
0xa9, 0xae, 0xac, 0xbd, 0xbc, 0x141, 0xab, 0xbb,
|
265 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x104, 0x10c, 0x118,
|
266 |
|
|
0x116, 0x2563, 0x2551, 0x2557, 0x255d, 0x12e, 0x160, 0x2510,
|
267 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x172, 0x16a,
|
268 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x17d,
|
269 |
|
|
0x105, 0x10d, 0x119, 0x117, 0x12f, 0x161, 0x173, 0x16b,
|
270 |
|
|
0x17e, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
271 |
|
|
0xd3, 0xdf, 0x14c, 0x143, 0xf5, 0xd5, 0xb5, 0x144,
|
272 |
|
|
0x136, 0x137, 0x13b, 0x13c, 0x146, 0x112, 0x145, 0x2019,
|
273 |
|
|
0xad, 0xb1, 0x201c, 0xbe, 0xb6, 0xa7, 0xf7, 0x201e,
|
274 |
|
|
0xb0, 0x2219, 0xb7, 0xb9, 0xb3, 0xb2, 0x25a0, 0xa0 },
|
275 |
|
|
/* CP850 */
|
276 |
|
|
{ 0xc7, 0xfc, 0xe9, 0xe2, 0xe4, 0xe0, 0xe5, 0xe7,
|
277 |
|
|
0xea, 0xeb, 0xe8, 0xef, 0xee, 0xec, 0xc4, 0xc5,
|
278 |
|
|
0xc9, 0xe6, 0xc6, 0xf4, 0xf6, 0xf2, 0xfb, 0xf9,
|
279 |
|
|
0xff, 0xd6, 0xdc, 0xf8, 0xa3, 0xd8, 0xd7, 0x192,
|
280 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0xf1, 0xd1, 0xaa, 0xba,
|
281 |
|
|
0xbf, 0xae, 0xac, 0xbd, 0xbc, 0xa1, 0xab, 0xbb,
|
282 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0xc1, 0xc2, 0xc0,
|
283 |
|
|
0xa9, 0x2563, 0x2551, 0x2557, 0x255d, 0xa2, 0xa5, 0x2510,
|
284 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0xe3, 0xc3,
|
285 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0xa4,
|
286 |
|
|
0xf0, 0xd0, 0xca, 0xcb, 0xc8, 0x131, 0xcd, 0xce,
|
287 |
|
|
0xcf, 0x2518, 0x250c, 0x2588, 0x2584, 0xa6, 0xcc, 0x2580,
|
288 |
|
|
0xd3, 0xdf, 0xd4, 0xd2, 0xf5, 0xd5, 0xb5, 0xfe,
|
289 |
|
|
0xde, 0xda, 0xdb, 0xd9, 0xfd, 0xdd, 0xaf, 0xb4,
|
290 |
|
|
0xad, 0xb1, 0x2017, 0xbe, 0xb6, 0xa7, 0xf7, 0xb8,
|
291 |
|
|
0xb0, 0xa8, 0xb7, 0xb9, 0xb3, 0xb2, 0x25a0, 0xa0 },
|
292 |
|
|
/* CP852 */
|
293 |
|
|
{ 0xc7, 0xfc, 0xe9, 0xe2, 0xe4, 0x16f, 0x107, 0xe7,
|
294 |
|
|
0x142, 0xeb, 0x150, 0x151, 0xee, 0x179, 0xc4, 0x106,
|
295 |
|
|
0xc9, 0x139, 0x13a, 0xf4, 0xf6, 0x13d, 0x13e, 0x15a,
|
296 |
|
|
0x15b, 0xd6, 0xdc, 0x164, 0x165, 0x141, 0xd7, 0x10d,
|
297 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0x104, 0x105, 0x17d, 0x17e,
|
298 |
|
|
0x118, 0x119, 0xac, 0x17a, 0x10c, 0x15f, 0xab, 0xbb,
|
299 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0xc1, 0xc2, 0x11a,
|
300 |
|
|
0x15e, 0x2563, 0x2551, 0x2557, 0x255d, 0x17b, 0x17c, 0x2510,
|
301 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x102, 0x103,
|
302 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0xa4,
|
303 |
|
|
0x111, 0x110, 0x10e, 0xcb, 0x10f, 0x147, 0xcd, 0xce,
|
304 |
|
|
0x11b, 0x2518, 0x250c, 0x2588, 0x2584, 0x162, 0x16e, 0x2580,
|
305 |
|
|
0xd3, 0xdf, 0xd4, 0x143, 0x144, 0x148, 0x160, 0x161,
|
306 |
|
|
0x154, 0xda, 0x155, 0x170, 0xfd, 0xdd, 0x163, 0xb4,
|
307 |
|
|
0xad, 0x2dd, 0x2db, 0x2c7, 0x2d8, 0xa7, 0xf7, 0xb8,
|
308 |
|
|
0xb0, 0xa8, 0x2d9, 0x171, 0x158, 0x159, 0x25a0, 0xa0 },
|
309 |
|
|
/* CP855 */
|
310 |
|
|
{ 0x452, 0x402, 0x453, 0x403, 0x451, 0x401, 0x454, 0x404,
|
311 |
|
|
0x455, 0x405, 0x456, 0x406, 0x457, 0x407, 0x458, 0x408,
|
312 |
|
|
0x459, 0x409, 0x45a, 0x40a, 0x45b, 0x40b, 0x45c, 0x40c,
|
313 |
|
|
0x45e, 0x40e, 0x45f, 0x40f, 0x44e, 0x42e, 0x44a, 0x42a,
|
314 |
|
|
0x430, 0x410, 0x431, 0x411, 0x446, 0x426, 0x434, 0x414,
|
315 |
|
|
0x435, 0x415, 0x444, 0x424, 0x433, 0x413, 0xab, 0xbb,
|
316 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x445, 0x425, 0x438,
|
317 |
|
|
0x418, 0x2563, 0x2551, 0x2557, 0x255d, 0x439, 0x419, 0x2510,
|
318 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x43a, 0x41a,
|
319 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0xa4,
|
320 |
|
|
0x43b, 0x41b, 0x43c, 0x41c, 0x43d, 0x41d, 0x43e, 0x41e,
|
321 |
|
|
0x43f, 0x2518, 0x250c, 0x2588, 0x2584, 0x41f, 0x44f, 0x2580,
|
322 |
|
|
0x42f, 0x440, 0x420, 0x441, 0x421, 0x442, 0x422, 0x443,
|
323 |
|
|
0x423, 0x436, 0x416, 0x432, 0x412, 0x44c, 0x42c, 0x2116,
|
324 |
|
|
0xad, 0x44b, 0x42b, 0x437, 0x417, 0x448, 0x428, 0x44d,
|
325 |
|
|
0x42d, 0x449, 0x429, 0x447, 0x427, 0xa7, 0x25a0, 0xa0 },
|
326 |
|
|
/* CP857 */
|
327 |
|
|
{ 0xc7, 0xfc, 0xe9, 0xe2, 0xe4, 0xe0, 0xe5, 0xe7,
|
328 |
|
|
0xea, 0xeb, 0xe8, 0xef, 0xee, 0x131, 0xc4, 0xc5,
|
329 |
|
|
0xc9, 0xe6, 0xc6, 0xf4, 0xf6, 0xf2, 0xfb, 0xf9,
|
330 |
|
|
0x130, 0xd6, 0xdc, 0xf8, 0xa3, 0xd8, 0x15e, 0x15f,
|
331 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0xf1, 0xd1, 0x11e, 0x11f,
|
332 |
|
|
0xbf, 0xae, 0xac, 0xbd, 0xbc, 0xa1, 0xab, 0xbb,
|
333 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0xc1, 0xc2, 0xc0,
|
334 |
|
|
0xa9, 0x2563, 0x2551, 0x2557, 0x255d, 0xa2, 0xa5, 0x2510,
|
335 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0xe3, 0xc3,
|
336 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0xa4,
|
337 |
|
|
0xba, 0xaa, 0xca, 0xcb, 0xc8, 0xf8bb, 0xcd, 0xce,
|
338 |
|
|
0xcf, 0x2518, 0x250c, 0x2588, 0x2584, 0xa6, 0xcc, 0x2580,
|
339 |
|
|
0xd3, 0xdf, 0xd4, 0xd2, 0xf5, 0xd5, 0xb5, 0xf8bc,
|
340 |
|
|
0xd7, 0xda, 0xdb, 0xd9, 0xec, 0xff, 0xaf, 0xb4,
|
341 |
|
|
0xad, 0xb1, 0xf8bd, 0xbe, 0xb6, 0xa7, 0xf7, 0xb8,
|
342 |
|
|
0xb0, 0xa8, 0xb7, 0xb9, 0xb3, 0xb2, 0x25a0, 0xa0 },
|
343 |
|
|
/* CP858 */
|
344 |
|
|
{ 0xc7, 0xfc, 0xe9, 0xe2, 0xe4, 0xe0, 0xe5, 0xe7,
|
345 |
|
|
0xea, 0xeb, 0xe8, 0xef, 0xee, 0xec, 0xc4, 0xc5,
|
346 |
|
|
0xc9, 0xe6, 0xc6, 0xf4, 0xf6, 0xf2, 0xfb, 0xf9,
|
347 |
|
|
0xff, 0xd6, 0xdc, 0xf8, 0xa3, 0xd8, 0xd7, 0x192,
|
348 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0xf1, 0xd1, 0xaa, 0xba,
|
349 |
|
|
0xbf, 0xae, 0xac, 0xbd, 0xbc, 0xa1, 0xab, 0xbb,
|
350 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0xc1, 0xc2, 0xc0,
|
351 |
|
|
0xa9, 0x2563, 0x2551, 0x2557, 0x255d, 0xa2, 0xa5, 0x2510,
|
352 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0xe3, 0xc3,
|
353 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0xa4,
|
354 |
|
|
0xf0, 0xd0, 0xca, 0xcb, 0xc8, 0x20ac, 0xcd, 0xce,
|
355 |
|
|
0xcf, 0x2518, 0x250c, 0x2588, 0x2584, 0xa6, 0xcc, 0x2580,
|
356 |
|
|
0xd3, 0xdf, 0xd4, 0xd2, 0xf5, 0xd5, 0xb5, 0xfe,
|
357 |
|
|
0xde, 0xda, 0xdb, 0xd9, 0xfd, 0xdd, 0xaf, 0xb4,
|
358 |
|
|
0xad, 0xb1, 0x2017, 0xbe, 0xb6, 0xa7, 0xf7, 0xb8,
|
359 |
|
|
0xb0, 0xa8, 0xb7, 0xb9, 0xb3, 0xb2, 0x25a0, 0xa0 },
|
360 |
|
|
/* CP862 */
|
361 |
|
|
{ 0x5d0, 0x5d1, 0x5d2, 0x5d3, 0x5d4, 0x5d5, 0x5d6, 0x5d7,
|
362 |
|
|
0x5d8, 0x5d9, 0x5da, 0x5db, 0x5dc, 0x5dd, 0x5de, 0x5df,
|
363 |
|
|
0x5e0, 0x5e1, 0x5e2, 0x5e3, 0x5e4, 0x5e5, 0x5e6, 0x5e7,
|
364 |
|
|
0x5e8, 0x5e9, 0x5ea, 0xa2, 0xa3, 0xa5, 0x20a7, 0x192,
|
365 |
|
|
0xe1, 0xed, 0xf3, 0xfa, 0xf1, 0xd1, 0xaa, 0xba,
|
366 |
|
|
0xbf, 0x2310, 0xac, 0xbd, 0xbc, 0xa1, 0xab, 0xbb,
|
367 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
368 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
369 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
370 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
371 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
372 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
373 |
|
|
0x3b1, 0xdf, 0x393, 0x3c0, 0x3a3, 0x3c3, 0xb5, 0x3c4,
|
374 |
|
|
0x3a6, 0x398, 0x3a9, 0x3b4, 0x221e, 0x3c6, 0x3b5, 0x2229,
|
375 |
|
|
0x2261, 0xb1, 0x2265, 0x2264, 0x2320, 0x2321, 0xf7, 0x2248,
|
376 |
|
|
0xb0, 0x2219, 0xb7, 0x221a, 0x207f, 0xb2, 0x25a0, 0xa0 },
|
377 |
|
|
/* CP866 */
|
378 |
|
|
{ 0x410, 0x411, 0x412, 0x413, 0x414, 0x415, 0x416, 0x417,
|
379 |
|
|
0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e, 0x41f,
|
380 |
|
|
0x420, 0x421, 0x422, 0x423, 0x424, 0x425, 0x426, 0x427,
|
381 |
|
|
0x428, 0x429, 0x42a, 0x42b, 0x42c, 0x42d, 0x42e, 0x42f,
|
382 |
|
|
0x430, 0x431, 0x432, 0x433, 0x434, 0x435, 0x436, 0x437,
|
383 |
|
|
0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e, 0x43f,
|
384 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
385 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
386 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
387 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
388 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
389 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
390 |
|
|
0x440, 0x441, 0x442, 0x443, 0x444, 0x445, 0x446, 0x447,
|
391 |
|
|
0x448, 0x449, 0x44a, 0x44b, 0x44c, 0x44d, 0x44e, 0x44f,
|
392 |
|
|
0x401, 0x451, 0x404, 0x454, 0x407, 0x457, 0x40e, 0x45e,
|
393 |
|
|
0xb0, 0x2219, 0xb7, 0x221a, 0x2116, 0xa4, 0x25a0, 0xa0 },
|
394 |
|
|
/* CP874 */
|
395 |
|
|
{ 0x20ac, 0x81, 0x82, 0x83, 0x84, 0x2026, 0x86, 0x87,
|
396 |
|
|
0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
|
397 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
398 |
|
|
0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
|
399 |
|
|
0xa0, 0xe01, 0xe02, 0xe03, 0xe04, 0xe05, 0xe06, 0xe07,
|
400 |
|
|
0xe08, 0xe09, 0xe0a, 0xe0b, 0xe0c, 0xe0d, 0xe0e, 0xe0f,
|
401 |
|
|
0xe10, 0xe11, 0xe12, 0xe13, 0xe14, 0xe15, 0xe16, 0xe17,
|
402 |
|
|
0xe18, 0xe19, 0xe1a, 0xe1b, 0xe1c, 0xe1d, 0xe1e, 0xe1f,
|
403 |
|
|
0xe20, 0xe21, 0xe22, 0xe23, 0xe24, 0xe25, 0xe26, 0xe27,
|
404 |
|
|
0xe28, 0xe29, 0xe2a, 0xe2b, 0xe2c, 0xe2d, 0xe2e, 0xe2f,
|
405 |
|
|
0xe30, 0xe31, 0xe32, 0xe33, 0xe34, 0xe35, 0xe36, 0xe37,
|
406 |
|
|
0xe38, 0xe39, 0xe3a, 0xf8c1, 0xf8c2, 0xf8c3, 0xf8c4, 0xe3f,
|
407 |
|
|
0xe40, 0xe41, 0xe42, 0xe43, 0xe44, 0xe45, 0xe46, 0xe47,
|
408 |
|
|
0xe48, 0xe49, 0xe4a, 0xe4b, 0xe4c, 0xe4d, 0xe4e, 0xe4f,
|
409 |
|
|
0xe50, 0xe51, 0xe52, 0xe53, 0xe54, 0xe55, 0xe56, 0xe57,
|
410 |
|
|
0xe58, 0xe59, 0xe5a, 0xe5b, 0xf8c5, 0xf8c6, 0xf8c7, 0xf8c8 },
|
411 |
|
|
/* CP1125 */
|
412 |
|
|
{ 0x410, 0x411, 0x412, 0x413, 0x414, 0x415, 0x416, 0x417,
|
413 |
|
|
0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e, 0x41f,
|
414 |
|
|
0x420, 0x421, 0x422, 0x423, 0x424, 0x425, 0x426, 0x427,
|
415 |
|
|
0x428, 0x429, 0x42a, 0x42b, 0x42c, 0x42d, 0x42e, 0x42f,
|
416 |
|
|
0x430, 0x431, 0x432, 0x433, 0x434, 0x435, 0x436, 0x437,
|
417 |
|
|
0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e, 0x43f,
|
418 |
|
|
0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2561, 0x2562, 0x2556,
|
419 |
|
|
0x2555, 0x2563, 0x2551, 0x2557, 0x255d, 0x255c, 0x255b, 0x2510,
|
420 |
|
|
0x2514, 0x2534, 0x252c, 0x251c, 0x2500, 0x253c, 0x255e, 0x255f,
|
421 |
|
|
0x255a, 0x2554, 0x2569, 0x2566, 0x2560, 0x2550, 0x256c, 0x2567,
|
422 |
|
|
0x2568, 0x2564, 0x2565, 0x2559, 0x2558, 0x2552, 0x2553, 0x256b,
|
423 |
|
|
0x256a, 0x2518, 0x250c, 0x2588, 0x2584, 0x258c, 0x2590, 0x2580,
|
424 |
|
|
0x440, 0x441, 0x442, 0x443, 0x444, 0x445, 0x446, 0x447,
|
425 |
|
|
0x448, 0x449, 0x44a, 0x44b, 0x44c, 0x44d, 0x44e, 0x44f,
|
426 |
|
|
0x401, 0x451, 0x490, 0x491, 0x404, 0x454, 0x406, 0x456,
|
427 |
|
|
0x407, 0x457, 0xb7, 0x221a, 0x2116, 0xa4, 0x25a0, 0xa0 },
|
428 |
|
|
/* CP1250 */
|
429 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x83, 0x201e, 0x2026, 0x2020, 0x2021,
|
430 |
|
|
0x88, 0x2030, 0x160, 0x2039, 0x15a, 0x164, 0x17d, 0x179,
|
431 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
432 |
|
|
0x98, 0x2122, 0x161, 0x203a, 0x15b, 0x165, 0x17e, 0x17a,
|
433 |
|
|
0xa0, 0x2c7, 0x2d8, 0x141, 0xa4, 0x104, 0xa6, 0xa7,
|
434 |
|
|
0xa8, 0xa9, 0x15e, 0xab, 0xac, 0xad, 0xae, 0x17b,
|
435 |
|
|
0xb0, 0xb1, 0x2db, 0x142, 0xb4, 0xb5, 0xb6, 0xb7,
|
436 |
|
|
0xb8, 0x105, 0x15f, 0xbb, 0x13d, 0x2dd, 0x13e, 0x17c,
|
437 |
|
|
0x154, 0xc1, 0xc2, 0x102, 0xc4, 0x139, 0x106, 0xc7,
|
438 |
|
|
0x10c, 0xc9, 0x118, 0xcb, 0x11a, 0xcd, 0xce, 0x10e,
|
439 |
|
|
0x110, 0x143, 0x147, 0xd3, 0xd4, 0x150, 0xd6, 0xd7,
|
440 |
|
|
0x158, 0x16e, 0xda, 0x170, 0xdc, 0xdd, 0x162, 0xdf,
|
441 |
|
|
0x155, 0xe1, 0xe2, 0x103, 0xe4, 0x13a, 0x107, 0xe7,
|
442 |
|
|
0x10d, 0xe9, 0x119, 0xeb, 0x11b, 0xed, 0xee, 0x10f,
|
443 |
|
|
0x111, 0x144, 0x148, 0xf3, 0xf4, 0x151, 0xf6, 0xf7,
|
444 |
|
|
0x159, 0x16f, 0xfa, 0x171, 0xfc, 0xfd, 0x163, 0x2d9 },
|
445 |
|
|
/* CP1251 */
|
446 |
|
|
{ 0x402, 0x403, 0x201a, 0x453, 0x201e, 0x2026, 0x2020, 0x2021,
|
447 |
|
|
0x20ac, 0x2030, 0x409, 0x2039, 0x40a, 0x40c, 0x40b, 0x40f,
|
448 |
|
|
0x452, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
449 |
|
|
0x98, 0x2122, 0x459, 0x203a, 0x45a, 0x45c, 0x45b, 0x45f,
|
450 |
|
|
0xa0, 0x40e, 0x45e, 0x408, 0xa4, 0x490, 0xa6, 0xa7,
|
451 |
|
|
0x401, 0xa9, 0x404, 0xab, 0xac, 0xad, 0xae, 0x407,
|
452 |
|
|
0xb0, 0xb1, 0x406, 0x456, 0x491, 0xb5, 0xb6, 0xb7,
|
453 |
|
|
0x451, 0x2116, 0x454, 0xbb, 0x458, 0x405, 0x455, 0x457,
|
454 |
|
|
0x410, 0x411, 0x412, 0x413, 0x414, 0x415, 0x416, 0x417,
|
455 |
|
|
0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e, 0x41f,
|
456 |
|
|
0x420, 0x421, 0x422, 0x423, 0x424, 0x425, 0x426, 0x427,
|
457 |
|
|
0x428, 0x429, 0x42a, 0x42b, 0x42c, 0x42d, 0x42e, 0x42f,
|
458 |
|
|
0x430, 0x431, 0x432, 0x433, 0x434, 0x435, 0x436, 0x437,
|
459 |
|
|
0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e, 0x43f,
|
460 |
|
|
0x440, 0x441, 0x442, 0x443, 0x444, 0x445, 0x446, 0x447,
|
461 |
|
|
0x448, 0x449, 0x44a, 0x44b, 0x44c, 0x44d, 0x44e, 0x44f },
|
462 |
|
|
/* CP1252 */
|
463 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
464 |
|
|
0x2c6, 0x2030, 0x160, 0x2039, 0x152, 0x8d, 0x17d, 0x8f,
|
465 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
466 |
|
|
0x2dc, 0x2122, 0x161, 0x203a, 0x153, 0x9d, 0x17e, 0x178,
|
467 |
|
|
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
468 |
|
|
0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
469 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
470 |
|
|
0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
|
471 |
|
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
|
472 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
473 |
|
|
0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
|
474 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
|
475 |
|
|
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
|
476 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
477 |
|
|
0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
|
478 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff },
|
479 |
|
|
/* CP1253 */
|
480 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
481 |
|
|
0x88, 0x2030, 0x8a, 0x2039, 0x8c, 0x8d, 0x8e, 0x8f,
|
482 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
483 |
|
|
0x98, 0x2122, 0x9a, 0x203a, 0x9c, 0x9d, 0x9e, 0x9f,
|
484 |
|
|
0xa0, 0x385, 0x386, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
485 |
|
|
0xa8, 0xa9, 0xf8f9, 0xab, 0xac, 0xad, 0xae, 0x2015,
|
486 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0x384, 0xb5, 0xb6, 0xb7,
|
487 |
|
|
0x388, 0x389, 0x38a, 0xbb, 0x38c, 0xbd, 0x38e, 0x38f,
|
488 |
|
|
0x390, 0x391, 0x392, 0x393, 0x394, 0x395, 0x396, 0x397,
|
489 |
|
|
0x398, 0x399, 0x39a, 0x39b, 0x39c, 0x39d, 0x39e, 0x39f,
|
490 |
|
|
0x3a0, 0x3a1, 0xf8fa, 0x3a3, 0x3a4, 0x3a5, 0x3a6, 0x3a7,
|
491 |
|
|
0x3a8, 0x3a9, 0x3aa, 0x3ab, 0x3ac, 0x3ad, 0x3ae, 0x3af,
|
492 |
|
|
0x3b0, 0x3b1, 0x3b2, 0x3b3, 0x3b4, 0x3b5, 0x3b6, 0x3b7,
|
493 |
|
|
0x3b8, 0x3b9, 0x3ba, 0x3bb, 0x3bc, 0x3bd, 0x3be, 0x3bf,
|
494 |
|
|
0x3c0, 0x3c1, 0x3c2, 0x3c3, 0x3c4, 0x3c5, 0x3c6, 0x3c7,
|
495 |
|
|
0x3c8, 0x3c9, 0x3ca, 0x3cb, 0x3cc, 0x3cd, 0x3ce, 0xf8fb },
|
496 |
|
|
/* CP1254 */
|
497 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
498 |
|
|
0x2c6, 0x2030, 0x160, 0x2039, 0x152, 0x8d, 0x8e, 0x8f,
|
499 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
500 |
|
|
0x2dc, 0x2122, 0x161, 0x203a, 0x153, 0x9d, 0x9e, 0x178,
|
501 |
|
|
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
502 |
|
|
0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
503 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
504 |
|
|
0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
|
505 |
|
|
0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7,
|
506 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
|
507 |
|
|
0x11e, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7,
|
508 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x130, 0x15e, 0xdf,
|
509 |
|
|
0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
|
510 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
|
511 |
|
|
0x11f, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
|
512 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x131, 0x15f, 0xff },
|
513 |
|
|
/* CP1255 */
|
514 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
515 |
|
|
0x2c6, 0x2030, 0x8a, 0x2039, 0x8c, 0x8d, 0x8e, 0x8f,
|
516 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
517 |
|
|
0x2dc, 0x2122, 0x9a, 0x203a, 0x9c, 0x9d, 0x9e, 0x9f,
|
518 |
|
|
0xa0, 0xa1, 0xa2, 0xa3, 0x20aa, 0xa5, 0xa6, 0xa7,
|
519 |
|
|
0xa8, 0xa9, 0xd7, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
520 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
521 |
|
|
0xb8, 0xb9, 0xf7, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
|
522 |
|
|
0x5b0, 0x5b1, 0x5b2, 0x5b3, 0x5b4, 0x5b5, 0x5b6, 0x5b7,
|
523 |
|
|
0x5b8, 0x5b9, 0x5ba, 0x5bb, 0x5bc, 0x5bd, 0x5be, 0x5bf,
|
524 |
|
|
0x5c0, 0x5c1, 0x5c2, 0x5c3, 0x5f0, 0x5f1, 0x5f2, 0x5f3,
|
525 |
|
|
0x5f4, 0xf88d, 0xf88e, 0xf88f, 0xf890, 0xf891, 0xf892, 0xf893,
|
526 |
|
|
0x5d0, 0x5d1, 0x5d2, 0x5d3, 0x5d4, 0x5d5, 0x5d6, 0x5d7,
|
527 |
|
|
0x5d8, 0x5d9, 0x5da, 0x5db, 0x5dc, 0x5dd, 0x5de, 0x5df,
|
528 |
|
|
0x5e0, 0x5e1, 0x5e2, 0x5e3, 0x5e4, 0x5e5, 0x5e6, 0x5e7,
|
529 |
|
|
0x5e8, 0x5e9, 0x5ea, 0xf894, 0xf895, 0x200e, 0x200f, 0xf896 },
|
530 |
|
|
/* CP1256 */
|
531 |
|
|
{ 0x20ac, 0x67e, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
532 |
|
|
0x2c6, 0x2030, 0x679, 0x2039, 0x152, 0x686, 0x698, 0x688,
|
533 |
|
|
0x6af, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
534 |
|
|
0x6a9, 0x2122, 0x691, 0x203a, 0x153, 0x200c, 0x200d, 0x6ba,
|
535 |
|
|
0xa0, 0x60c, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
536 |
|
|
0xa8, 0xa9, 0x6be, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
537 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
538 |
|
|
0xb8, 0xb9, 0x61b, 0xbb, 0xbc, 0xbd, 0xbe, 0x61f,
|
539 |
|
|
0x6c1, 0x621, 0x622, 0x623, 0x624, 0x625, 0x626, 0x627,
|
540 |
|
|
0x628, 0x629, 0x62a, 0x62b, 0x62c, 0x62d, 0x62e, 0x62f,
|
541 |
|
|
0x630, 0x631, 0x632, 0x633, 0x634, 0x635, 0x636, 0xd7,
|
542 |
|
|
0x637, 0x638, 0x639, 0x63a, 0x640, 0x641, 0x642, 0x643,
|
543 |
|
|
0xe0, 0x644, 0xe2, 0x645, 0x646, 0x647, 0x648, 0xe7,
|
544 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0x649, 0x64a, 0xee, 0xef,
|
545 |
|
|
0x64b, 0x64c, 0x64d, 0x64e, 0xf4, 0x64f, 0x650, 0xf7,
|
546 |
|
|
0x651, 0xf9, 0x652, 0xfb, 0xfc, 0x200e, 0x200f, 0x6d2 },
|
547 |
|
|
/* CP1257 */
|
548 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x83, 0x201e, 0x2026, 0x2020, 0x2021,
|
549 |
|
|
0x88, 0x2030, 0x8a, 0x2039, 0x8c, 0xa8, 0x2c7, 0xb8,
|
550 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
551 |
|
|
0x98, 0x2122, 0x9a, 0x203a, 0x9c, 0xaf, 0x2db, 0x9f,
|
552 |
|
|
0xa0, 0xf8fc, 0xa2, 0xa3, 0xa4, 0xf8fd, 0xa6, 0xa7,
|
553 |
|
|
0xd8, 0xa9, 0x156, 0xab, 0xac, 0xad, 0xae, 0xc6,
|
554 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
555 |
|
|
0xf8, 0xb9, 0x157, 0xbb, 0xbc, 0xbd, 0xbe, 0xe6,
|
556 |
|
|
0x104, 0x12e, 0x100, 0x106, 0xc4, 0xc5, 0x118, 0x112,
|
557 |
|
|
0x10c, 0xc9, 0x179, 0x116, 0x122, 0x136, 0x12a, 0x13b,
|
558 |
|
|
0x160, 0x143, 0x145, 0xd3, 0x14c, 0xd5, 0xd6, 0xd7,
|
559 |
|
|
0x172, 0x141, 0x15a, 0x16a, 0xdc, 0x17b, 0x17d, 0xdf,
|
560 |
|
|
0x105, 0x12f, 0x101, 0x107, 0xe4, 0xe5, 0x119, 0x113,
|
561 |
|
|
0x10d, 0xe9, 0x17a, 0x117, 0x123, 0x137, 0x12b, 0x13c,
|
562 |
|
|
0x161, 0x144, 0x146, 0xf3, 0x14d, 0xf5, 0xf6, 0xf7,
|
563 |
|
|
0x173, 0x142, 0x15b, 0x16b, 0xfc, 0x17c, 0x17e, 0x2d9 },
|
564 |
|
|
/* CP1258 */
|
565 |
|
|
{ 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021,
|
566 |
|
|
0x2c6, 0x2030, 0x8a, 0x2039, 0x152, 0x8d, 0x8e, 0x8f,
|
567 |
|
|
0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014,
|
568 |
|
|
0x2dc, 0x2122, 0x9a, 0x203a, 0x153, 0x9d, 0x9e, 0x178,
|
569 |
|
|
0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
|
570 |
|
|
0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
|
571 |
|
|
0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7,
|
572 |
|
|
0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
|
573 |
|
|
0xc0, 0xc1, 0xc2, 0x102, 0xc4, 0xc5, 0xc6, 0xc7,
|
574 |
|
|
0xc8, 0xc9, 0xca, 0xcb, 0x300, 0xcd, 0xce, 0xcf,
|
575 |
|
|
0x110, 0xd1, 0x309, 0xd3, 0xd4, 0x1a0, 0xd6, 0xd7,
|
576 |
|
|
0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1af, 0x303, 0xdf,
|
577 |
|
|
0xe0, 0xe1, 0xe2, 0x103, 0xe4, 0xe5, 0xe6, 0xe7,
|
578 |
|
|
0xe8, 0xe9, 0xea, 0xeb, 0x301, 0xed, 0xee, 0xef,
|
579 |
|
|
0x111, 0xf1, 0x323, 0xf3, 0xf4, 0x1a1, 0xf6, 0xf7,
|
580 |
|
|
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1b0, 0x20ab, 0xff },
|
581 |
|
|
/* CP20866 (KOI8-R) */
|
582 |
|
|
{ 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524,
|
583 |
|
|
0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590,
|
584 |
|
|
0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248,
|
585 |
|
|
0x2264, 0x2265, 0xa0, 0x2321, 0xb0, 0xb2, 0xb7, 0xf7,
|
586 |
|
|
0x2550, 0x2551, 0x2552, 0x451, 0x2553, 0x2554, 0x2555, 0x2556,
|
587 |
|
|
0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e,
|
588 |
|
|
0x255f, 0x2560, 0x2561, 0x401, 0x2562, 0x2563, 0x2564, 0x2565,
|
589 |
|
|
0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0xa9,
|
590 |
|
|
0x44e, 0x430, 0x431, 0x446, 0x434, 0x435, 0x444, 0x433,
|
591 |
|
|
0x445, 0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e,
|
592 |
|
|
0x43f, 0x44f, 0x440, 0x441, 0x442, 0x443, 0x436, 0x432,
|
593 |
|
|
0x44c, 0x44b, 0x437, 0x448, 0x44d, 0x449, 0x447, 0x44a,
|
594 |
|
|
0x42e, 0x410, 0x411, 0x426, 0x414, 0x415, 0x424, 0x413,
|
595 |
|
|
0x425, 0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e,
|
596 |
|
|
0x41f, 0x42f, 0x420, 0x421, 0x422, 0x423, 0x416, 0x412,
|
597 |
|
|
0x42c, 0x42b, 0x417, 0x428, 0x42d, 0x429, 0x427, 0x42a },
|
598 |
|
|
/* CP21866 (KOI8-U) */
|
599 |
|
|
{ 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524,
|
600 |
|
|
0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590,
|
601 |
|
|
0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248,
|
602 |
|
|
0x2264, 0x2265, 0xa0, 0x2321, 0xb0, 0xb2, 0xb7, 0xf7,
|
603 |
|
|
0x2550, 0x2551, 0x2552, 0x451, 0x454, 0x2554, 0x456, 0x457,
|
604 |
|
|
0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x491, 0x45e, 0x255e,
|
605 |
|
|
0x255f, 0x2560, 0x2561, 0x401, 0x404, 0x2563, 0x406, 0x407,
|
606 |
|
|
0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x490, 0x40e, 0xa9,
|
607 |
|
|
0x44e, 0x430, 0x431, 0x446, 0x434, 0x435, 0x444, 0x433,
|
608 |
|
|
0x445, 0x438, 0x439, 0x43a, 0x43b, 0x43c, 0x43d, 0x43e,
|
609 |
|
|
0x43f, 0x44f, 0x440, 0x441, 0x442, 0x443, 0x436, 0x432,
|
610 |
|
|
0x44c, 0x44b, 0x437, 0x448, 0x44d, 0x449, 0x447, 0x44a,
|
611 |
|
|
0x42e, 0x410, 0x411, 0x426, 0x414, 0x415, 0x424, 0x413,
|
612 |
|
|
0x425, 0x418, 0x419, 0x41a, 0x41b, 0x41c, 0x41d, 0x41e,
|
613 |
|
|
0x41f, 0x42f, 0x420, 0x421, 0x422, 0x423, 0x416, 0x412,
|
614 |
|
|
0x42c, 0x42b, 0x417, 0x428, 0x42d, 0x429, 0x427, 0x42a }
|
615 |
|
|
};
|
616 |
|
|
#endif /* _MB_EXTENDED_CHARSETS_WINDOWS */
|
617 |
|
|
|
618 |
|
|
/* Handle one to five decimal digits. Return -1 in any other case. */
|
619 |
|
|
static int
|
620 |
|
|
__micro_atoi (const char *s)
|
621 |
|
|
{
|
622 |
|
|
int ret = 0;
|
623 |
|
|
|
624 |
|
|
if (!*s)
|
625 |
|
|
return -1;
|
626 |
|
|
while (*s)
|
627 |
|
|
{
|
628 |
|
|
if (*s < '0' || *s > '9' || ret >= 100000)
|
629 |
|
|
return -1;
|
630 |
|
|
ret = 10 * ret + (*s++ - '0');
|
631 |
|
|
}
|
632 |
|
|
return ret;
|
633 |
|
|
}
|
634 |
|
|
|
635 |
|
|
#ifdef _MB_EXTENDED_CHARSETS_ISO
|
636 |
|
|
int
|
637 |
|
|
__iso_8859_index (const char *charset_ext)
|
638 |
|
|
{
|
639 |
|
|
int iso_idx = __micro_atoi (charset_ext);
|
640 |
|
|
if (iso_idx >= 2 && iso_idx <= 16)
|
641 |
|
|
{
|
642 |
|
|
iso_idx -= 2;
|
643 |
|
|
if (iso_idx > 10)
|
644 |
|
|
--iso_idx;
|
645 |
|
|
return iso_idx;
|
646 |
|
|
}
|
647 |
|
|
return -1;
|
648 |
|
|
}
|
649 |
|
|
#endif /* _MB_EXTENDED_CHARSETS_ISO */
|
650 |
|
|
|
651 |
|
|
#ifdef _MB_EXTENDED_CHARSETS_WINDOWS
|
652 |
|
|
int
|
653 |
|
|
__cp_index (const char *charset_ext)
|
654 |
|
|
{
|
655 |
|
|
int cp_idx = __micro_atoi (charset_ext);
|
656 |
|
|
switch (cp_idx)
|
657 |
|
|
{
|
658 |
|
|
case 437:
|
659 |
|
|
cp_idx = 0;
|
660 |
|
|
break;
|
661 |
|
|
case 720:
|
662 |
|
|
cp_idx = 1;
|
663 |
|
|
break;
|
664 |
|
|
case 737:
|
665 |
|
|
cp_idx = 2;
|
666 |
|
|
break;
|
667 |
|
|
case 775:
|
668 |
|
|
cp_idx = 3;
|
669 |
|
|
break;
|
670 |
|
|
case 850:
|
671 |
|
|
cp_idx = 4;
|
672 |
|
|
break;
|
673 |
|
|
case 852:
|
674 |
|
|
cp_idx = 5;
|
675 |
|
|
break;
|
676 |
|
|
case 855:
|
677 |
|
|
cp_idx = 6;
|
678 |
|
|
break;
|
679 |
|
|
case 857:
|
680 |
|
|
cp_idx = 7;
|
681 |
|
|
break;
|
682 |
|
|
case 858:
|
683 |
|
|
cp_idx = 8;
|
684 |
|
|
break;
|
685 |
|
|
case 862:
|
686 |
|
|
cp_idx = 9;
|
687 |
|
|
break;
|
688 |
|
|
case 866:
|
689 |
|
|
cp_idx = 10;
|
690 |
|
|
break;
|
691 |
|
|
case 874:
|
692 |
|
|
cp_idx = 11;
|
693 |
|
|
break;
|
694 |
|
|
case 1125:
|
695 |
|
|
cp_idx = 12;
|
696 |
|
|
break;
|
697 |
|
|
case 1250:
|
698 |
|
|
cp_idx = 13;
|
699 |
|
|
break;
|
700 |
|
|
case 1251:
|
701 |
|
|
cp_idx = 14;
|
702 |
|
|
break;
|
703 |
|
|
case 1252:
|
704 |
|
|
cp_idx = 15;
|
705 |
|
|
break;
|
706 |
|
|
case 1253:
|
707 |
|
|
cp_idx = 16;
|
708 |
|
|
break;
|
709 |
|
|
case 1254:
|
710 |
|
|
cp_idx = 17;
|
711 |
|
|
break;
|
712 |
|
|
case 1255:
|
713 |
|
|
cp_idx = 18;
|
714 |
|
|
break;
|
715 |
|
|
case 1256:
|
716 |
|
|
cp_idx = 19;
|
717 |
|
|
break;
|
718 |
|
|
case 1257:
|
719 |
|
|
cp_idx = 20;
|
720 |
|
|
break;
|
721 |
|
|
case 1258:
|
722 |
|
|
cp_idx = 21;
|
723 |
|
|
break;
|
724 |
|
|
case 20866:
|
725 |
|
|
cp_idx = 22;
|
726 |
|
|
break;
|
727 |
|
|
case 21866:
|
728 |
|
|
cp_idx = 23;
|
729 |
|
|
break;
|
730 |
|
|
default:
|
731 |
|
|
cp_idx = -1;
|
732 |
|
|
break;
|
733 |
|
|
}
|
734 |
|
|
return cp_idx;
|
735 |
|
|
}
|
736 |
|
|
#endif /* _MB_EXTENDED_CHARSETS_WINDOWS */
|
737 |
|
|
#endif /* _MB_CAPABLE */
|