Emulate using getrlimit.
[glibc/history.git] / iconvdata / koi8-r.h
blobf6b887f0c79aab99e9c53a781ef3a148bc6c0dac
1 static const wchar_t to_ucs4[256] = {
2 [0x01] = 0x0001,
3 [0x02] = 0x0002,
4 [0x03] = 0x0003,
5 [0x04] = 0x0004,
6 [0x05] = 0x0005,
7 [0x06] = 0x0006,
8 [0x07] = 0x0007,
9 [0x08] = 0x0008,
10 [0x09] = 0x0009,
11 [0x0A] = 0x000A,
12 [0x0B] = 0x000B,
13 [0x0C] = 0x000C,
14 [0x0D] = 0x000D,
15 [0x0E] = 0x000E,
16 [0x0F] = 0x000F,
17 [0x10] = 0x0010,
18 [0x11] = 0x0011,
19 [0x12] = 0x0012,
20 [0x13] = 0x0013,
21 [0x14] = 0x0014,
22 [0x15] = 0x0015,
23 [0x16] = 0x0016,
24 [0x17] = 0x0017,
25 [0x18] = 0x0018,
26 [0x19] = 0x0019,
27 [0x1A] = 0x001A,
28 [0x1B] = 0x001B,
29 [0x1C] = 0x001C,
30 [0x1D] = 0x001D,
31 [0x1E] = 0x001E,
32 [0x1F] = 0x001F,
33 [0x20] = 0x0020,
34 [0x21] = 0x0021,
35 [0x22] = 0x0022,
36 [0x23] = 0x0023,
37 [0x24] = 0x0024,
38 [0x25] = 0x0025,
39 [0x26] = 0x0026,
40 [0x27] = 0x0027,
41 [0x28] = 0x0028,
42 [0x29] = 0x0029,
43 [0x2A] = 0x002A,
44 [0x2B] = 0x002B,
45 [0x2C] = 0x002C,
46 [0x2D] = 0x002D,
47 [0x2E] = 0x002E,
48 [0x2F] = 0x002F,
49 [0x30] = 0x0030,
50 [0x31] = 0x0031,
51 [0x32] = 0x0032,
52 [0x33] = 0x0033,
53 [0x34] = 0x0034,
54 [0x35] = 0x0035,
55 [0x36] = 0x0036,
56 [0x37] = 0x0037,
57 [0x38] = 0x0038,
58 [0x39] = 0x0039,
59 [0x3A] = 0x003A,
60 [0x3B] = 0x003B,
61 [0x3C] = 0x003C,
62 [0x3D] = 0x003D,
63 [0x3E] = 0x003E,
64 [0x3F] = 0x003F,
65 [0x40] = 0x0040,
66 [0x41] = 0x0041,
67 [0x42] = 0x0042,
68 [0x43] = 0x0043,
69 [0x44] = 0x0044,
70 [0x45] = 0x0045,
71 [0x46] = 0x0046,
72 [0x47] = 0x0047,
73 [0x48] = 0x0048,
74 [0x49] = 0x0049,
75 [0x4A] = 0x004A,
76 [0x4B] = 0x004B,
77 [0x4C] = 0x004C,
78 [0x4D] = 0x004D,
79 [0x4E] = 0x004E,
80 [0x4F] = 0x004F,
81 [0x50] = 0x0050,
82 [0x51] = 0x0051,
83 [0x52] = 0x0052,
84 [0x53] = 0x0053,
85 [0x54] = 0x0054,
86 [0x55] = 0x0055,
87 [0x56] = 0x0056,
88 [0x57] = 0x0057,
89 [0x58] = 0x0058,
90 [0x59] = 0x0059,
91 [0x5A] = 0x005A,
92 [0x5B] = 0x005B,
93 [0x5C] = 0x005C,
94 [0x5D] = 0x005D,
95 [0x5E] = 0x005E,
96 [0x5F] = 0x005F,
97 [0x60] = 0x0060,
98 [0x61] = 0x0061,
99 [0x62] = 0x0062,
100 [0x63] = 0x0063,
101 [0x64] = 0x0064,
102 [0x65] = 0x0065,
103 [0x66] = 0x0066,
104 [0x67] = 0x0067,
105 [0x68] = 0x0068,
106 [0x69] = 0x0069,
107 [0x6A] = 0x006A,
108 [0x6B] = 0x006B,
109 [0x6C] = 0x006C,
110 [0x6D] = 0x006D,
111 [0x6E] = 0x006E,
112 [0x6F] = 0x006F,
113 [0x70] = 0x0070,
114 [0x71] = 0x0071,
115 [0x72] = 0x0072,
116 [0x73] = 0x0073,
117 [0x74] = 0x0074,
118 [0x75] = 0x0075,
119 [0x76] = 0x0076,
120 [0x77] = 0x0077,
121 [0x78] = 0x0078,
122 [0x79] = 0x0079,
123 [0x7A] = 0x007A,
124 [0x7B] = 0x007B,
125 [0x7C] = 0x007C,
126 [0x7D] = 0x007D,
127 [0x7E] = 0x007E,
128 [0x7F] = 0x007F,
129 [0x80] = 0x2500,
130 [0x81] = 0x2502,
131 [0x82] = 0x250C,
132 [0x83] = 0x2510,
133 [0x84] = 0x2514,
134 [0x85] = 0x2518,
135 [0x86] = 0x251C,
136 [0x87] = 0x2524,
137 [0x88] = 0x252C,
138 [0x89] = 0x2534,
139 [0x8A] = 0x253C,
140 [0x8B] = 0x2580,
141 [0x8C] = 0x2584,
142 [0x8D] = 0x2588,
143 [0x8E] = 0x258C,
144 [0x8F] = 0x2590,
145 [0x90] = 0x2591,
146 [0x91] = 0x2592,
147 [0x92] = 0x2593,
148 [0x93] = 0x2320,
149 [0x94] = 0x25A0,
150 [0x95] = 0x2022,
151 [0x96] = 0x221A,
152 [0x97] = 0x2248,
153 [0x98] = 0x2264,
154 [0x99] = 0x2265,
155 [0x9A] = 0x00A0,
156 [0x9B] = 0x2321,
157 [0x9C] = 0x00B0,
158 [0x9D] = 0x00B2,
159 [0x9E] = 0x00B7,
160 [0x9F] = 0x00F7,
161 [0xA0] = 0x2550,
162 [0xA1] = 0x2551,
163 [0xA2] = 0x2552,
164 [0xA3] = 0x0451,
165 [0xA4] = 0x2553,
166 [0xA5] = 0x2554,
167 [0xA6] = 0x2555,
168 [0xA7] = 0x2556,
169 [0xA8] = 0x2557,
170 [0xA9] = 0x2558,
171 [0xAA] = 0x2559,
172 [0xAB] = 0x255A,
173 [0xAC] = 0x255B,
174 [0xAD] = 0x255C,
175 [0xAE] = 0x255D,
176 [0xAF] = 0x255E,
177 [0xB0] = 0x255F,
178 [0xB1] = 0x2560,
179 [0xB2] = 0x2561,
180 [0xB3] = 0x0401,
181 [0xB4] = 0x2562,
182 [0xB5] = 0x2563,
183 [0xB6] = 0x2564,
184 [0xB7] = 0x2565,
185 [0xB8] = 0x2566,
186 [0xB9] = 0x2567,
187 [0xBA] = 0x2568,
188 [0xBB] = 0x2569,
189 [0xBC] = 0x256A,
190 [0xBD] = 0x256B,
191 [0xBE] = 0x256C,
192 [0xBF] = 0x00A9,
193 [0xC0] = 0x044E,
194 [0xC1] = 0x0430,
195 [0xC2] = 0x0431,
196 [0xC3] = 0x0446,
197 [0xC4] = 0x0434,
198 [0xC5] = 0x0435,
199 [0xC6] = 0x0444,
200 [0xC7] = 0x0433,
201 [0xC8] = 0x0445,
202 [0xC9] = 0x0438,
203 [0xCA] = 0x0439,
204 [0xCB] = 0x043A,
205 [0xCC] = 0x043B,
206 [0xCD] = 0x043C,
207 [0xCE] = 0x043D,
208 [0xCF] = 0x043E,
209 [0xD0] = 0x043F,
210 [0xD1] = 0x044F,
211 [0xD2] = 0x0440,
212 [0xD3] = 0x0441,
213 [0xD4] = 0x0442,
214 [0xD5] = 0x0443,
215 [0xD6] = 0x0436,
216 [0xD7] = 0x0432,
217 [0xD8] = 0x044C,
218 [0xD9] = 0x044B,
219 [0xDA] = 0x0437,
220 [0xDB] = 0x0448,
221 [0xDC] = 0x044D,
222 [0xDD] = 0x0449,
223 [0xDE] = 0x0447,
224 [0xDF] = 0x044A,
225 [0xE0] = 0x042E,
226 [0xE1] = 0x0410,
227 [0xE2] = 0x0411,
228 [0xE3] = 0x0426,
229 [0xE4] = 0x0414,
230 [0xE5] = 0x0415,
231 [0xE6] = 0x0424,
232 [0xE7] = 0x0413,
233 [0xE8] = 0x0425,
234 [0xE9] = 0x0418,
235 [0xEA] = 0x0419,
236 [0xEB] = 0x041A,
237 [0xEC] = 0x041B,
238 [0xED] = 0x041C,
239 [0xEE] = 0x041D,
240 [0xEF] = 0x041E,
241 [0xF0] = 0x041F,
242 [0xF1] = 0x042F,
243 [0xF2] = 0x0420,
244 [0xF3] = 0x0421,
245 [0xF4] = 0x0422,
246 [0xF5] = 0x0423,
247 [0xF6] = 0x0416,
248 [0xF7] = 0x0412,
249 [0xF8] = 0x042C,
250 [0xF9] = 0x042B,
251 [0xFA] = 0x0417,
252 [0xFB] = 0x0428,
253 [0xFC] = 0x042D,
254 [0xFD] = 0x0429,
255 [0xFE] = 0x0427,
256 [0xFF] = 0x042A,
258 static struct gap from_idx[] = {
259 { start: 000000, end: 0x007f, idx: 0 },
260 { start: 0x00a0, end: 0x00a0, idx: -32 },
261 { start: 0x00a9, end: 0x00a9, idx: -40 },
262 { start: 0x00b0, end: 0x00b7, idx: -46 },
263 { start: 0x00f7, end: 0x00f7, idx: -109 },
264 { start: 0x0401, end: 0x0401, idx: -886 },
265 { start: 0x0410, end: 0x0451, idx: -900 },
266 { start: 0x2022, end: 0x2022, idx: -8020 },
267 { start: 0x221a, end: 0x221a, idx: -8523 },
268 { start: 0x2248, end: 0x2248, idx: -8568 },
269 { start: 0x2264, end: 0x2265, idx: -8595 },
270 { start: 0x2320, end: 0x2321, idx: -8781 },
271 { start: 0x2500, end: 0x2502, idx: -9259 },
272 { start: 0x250c, end: 0x251c, idx: -9268 },
273 { start: 0x2524, end: 0x2524, idx: -9275 },
274 { start: 0x252c, end: 0x252c, idx: -9282 },
275 { start: 0x2534, end: 0x2534, idx: -9289 },
276 { start: 0x253c, end: 0x253c, idx: -9296 },
277 { start: 0x2550, end: 0x256c, idx: -9315 },
278 { start: 0x2580, end: 0x2593, idx: -9334 },
279 { start: 0x25a0, end: 0x25a0, idx: -9346 },
280 { start: 0xffff, end: 0xffff, idx: 0 }
282 static const char from_ucs4[] = {
284 '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07', '\x08',
285 '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f', '\x10',
286 '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17', '\x18',
287 '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f', '\x20',
288 '\x21', '\x22', '\x23', '\x24', '\x25', '\x26', '\x27', '\x28',
289 '\x29', '\x2a', '\x2b', '\x2c', '\x2d', '\x2e', '\x2f', '\x30',
290 '\x31', '\x32', '\x33', '\x34', '\x35', '\x36', '\x37', '\x38',
291 '\x39', '\x3a', '\x3b', '\x3c', '\x3d', '\x3e', '\x3f', '\x40',
292 '\x41', '\x42', '\x43', '\x44', '\x45', '\x46', '\x47', '\x48',
293 '\x49', '\x4a', '\x4b', '\x4c', '\x4d', '\x4e', '\x4f', '\x50',
294 '\x51', '\x52', '\x53', '\x54', '\x55', '\x56', '\x57', '\x58',
295 '\x59', '\x5a', '\x5b', '\x5c', '\x5d', '\x5e', '\x5f', '\x60',
296 '\x61', '\x62', '\x63', '\x64', '\x65', '\x66', '\x67', '\x68',
297 '\x69', '\x6a', '\x6b', '\x6c', '\x6d', '\x6e', '\x6f', '\x70',
298 '\x71', '\x72', '\x73', '\x74', '\x75', '\x76', '\x77', '\x78',
299 '\x79', '\x7a', '\x7b', '\x7c', '\x7d', '\x7e', '\x7f', '\x9a',
300 '\xbf', '\x9c', '\x00', '\x9d', '\x00', '\x00', '\x00', '\x00',
301 '\x9e', '\x9f', '\xb3', '\xe1', '\xe2', '\xf7', '\xe7', '\xe4',
302 '\xe5', '\xf6', '\xfa', '\xe9', '\xea', '\xeb', '\xec', '\xed',
303 '\xee', '\xef', '\xf0', '\xf2', '\xf3', '\xf4', '\xf5', '\xe6',
304 '\xe8', '\xe3', '\xfe', '\xfb', '\xfd', '\xff', '\xf9', '\xf8',
305 '\xfc', '\xe0', '\xf1', '\xc1', '\xc2', '\xd7', '\xc7', '\xc4',
306 '\xc5', '\xd6', '\xda', '\xc9', '\xca', '\xcb', '\xcc', '\xcd',
307 '\xce', '\xcf', '\xd0', '\xd2', '\xd3', '\xd4', '\xd5', '\xc6',
308 '\xc8', '\xc3', '\xde', '\xdb', '\xdd', '\xdf', '\xd9', '\xd8',
309 '\xdc', '\xc0', '\xd1', '\x00', '\xa3', '\x95', '\x96', '\x97',
310 '\x98', '\x99', '\x93', '\x9b', '\x80', '\x00', '\x81', '\x82',
311 '\x00', '\x00', '\x00', '\x83', '\x00', '\x00', '\x00', '\x84',
312 '\x00', '\x00', '\x00', '\x85', '\x00', '\x00', '\x00', '\x86',
313 '\x87', '\x88', '\x89', '\x8a', '\xa0', '\xa1', '\xa2', '\xa4',
314 '\xa5', '\xa6', '\xa7', '\xa8', '\xa9', '\xaa', '\xab', '\xac',
315 '\xad', '\xae', '\xaf', '\xb0', '\xb1', '\xb2', '\xb4', '\xb5',
316 '\xb6', '\xb7', '\xb8', '\xb9', '\xba', '\xbb', '\xbc', '\xbd',
317 '\xbe', '\x8b', '\x00', '\x00', '\x00', '\x8c', '\x00', '\x00',
318 '\x00', '\x8d', '\x00', '\x00', '\x00', '\x8e', '\x00', '\x00',
319 '\x00', '\x8f', '\x90', '\x91', '\x92', '\x94',