1 static const uint32_t to_ucs4
[256] = {
248 static const struct gap from_idx
[] = {
249 { start
: 0x0000, end
: 0x007f, idx
: 0 },
250 { start
: 0x00a0, end
: 0x0103, idx
: -32 },
251 { start
: 0x0110, end
: 0x0111, idx
: -44 },
252 { start
: 0x0152, end
: 0x0153, idx
: -108 },
253 { start
: 0x0178, end
: 0x0178, idx
: -144 },
254 { start
: 0x0192, end
: 0x0192, idx
: -169 },
255 { start
: 0x01a0, end
: 0x01a1, idx
: -182 },
256 { start
: 0x01af, end
: 0x01b0, idx
: -195 },
257 { start
: 0x02c6, end
: 0x02c6, idx
: -472 },
258 { start
: 0x02dc, end
: 0x02dc, idx
: -493 },
259 { start
: 0x0303, end
: 0x0309, idx
: -531 },
260 { start
: 0x0323, end
: 0x0323, idx
: -556 },
261 { start
: 0x0340, end
: 0x0341, idx
: -584 },
262 { start
: 0x2013, end
: 0x2026, idx
: -7961 },
263 { start
: 0x2030, end
: 0x2030, idx
: -7970 },
264 { start
: 0x2039, end
: 0x203a, idx
: -7978 },
265 { start
: 0x20ab, end
: 0x20ab, idx
: -8090 },
266 { start
: 0x2122, end
: 0x2122, idx
: -8208 },
267 { start
: 0xffff, end
: 0xffff, idx
: 0 }
269 static const char from_ucs4
[] = {
271 '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07',
272 '\x08', '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f',
273 '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17',
274 '\x18', '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f',
275 '\x20', '\x21', '\x22', '\x23', '\x24', '\x25', '\x26', '\x27',
276 '\x28', '\x29', '\x2a', '\x2b', '\x2c', '\x2d', '\x2e', '\x2f',
277 '\x30', '\x31', '\x32', '\x33', '\x34', '\x35', '\x36', '\x37',
278 '\x38', '\x39', '\x3a', '\x3b', '\x3c', '\x3d', '\x3e', '\x3f',
279 '\x40', '\x41', '\x42', '\x43', '\x44', '\x45', '\x46', '\x47',
280 '\x48', '\x49', '\x4a', '\x4b', '\x4c', '\x4d', '\x4e', '\x4f',
281 '\x50', '\x51', '\x52', '\x53', '\x54', '\x55', '\x56', '\x57',
282 '\x58', '\x59', '\x5a', '\x5b', '\x5c', '\x5d', '\x5e', '\x5f',
283 '\x60', '\x61', '\x62', '\x63', '\x64', '\x65', '\x66', '\x67',
284 '\x68', '\x69', '\x6a', '\x6b', '\x6c', '\x6d', '\x6e', '\x6f',
285 '\x70', '\x71', '\x72', '\x73', '\x74', '\x75', '\x76', '\x77',
286 '\x78', '\x79', '\x7a', '\x7b', '\x7c', '\x7d', '\x7e', '\x7f',
287 '\xa0', '\xa1', '\xa2', '\xa3', '\xa4', '\xa5', '\xa6', '\xa7',
288 '\xa8', '\xa9', '\xaa', '\xab', '\xac', '\xad', '\xae', '\xaf',
289 '\xb0', '\xb1', '\xb2', '\xb3', '\xb4', '\xb5', '\xb6', '\xb7',
290 '\xb8', '\xb9', '\xba', '\xbb', '\xbc', '\xbd', '\xbe', '\xbf',
291 '\xc0', '\xc1', '\xc2', '\x00', '\xc4', '\xc5', '\xc6', '\xc7',
292 '\xc8', '\xc9', '\xca', '\xcb', '\x00', '\xcd', '\xce', '\xcf',
293 '\x00', '\xd1', '\x00', '\xd3', '\xd4', '\x00', '\xd6', '\xd7',
294 '\xd8', '\xd9', '\xda', '\xdb', '\xdc', '\x00', '\x00', '\xdf',
295 '\xe0', '\xe1', '\xe2', '\x00', '\xe4', '\xe5', '\xe6', '\xe7',
296 '\xe8', '\xe9', '\xea', '\xeb', '\x00', '\xed', '\xee', '\xef',
297 '\x00', '\xf1', '\x00', '\xf3', '\xf4', '\x00', '\xf6', '\xf7',
298 '\xf8', '\xf9', '\xfa', '\xfb', '\xfc', '\x00', '\x00', '\xff',
299 '\x00', '\x00', '\xc3', '\xe3', '\xd0', '\xf0', '\x8c', '\x9c',
300 '\x9f', '\x83', '\xd5', '\xf5', '\xdd', '\xfd', '\x88', '\x98',
301 '\xde', '\x00', '\x00', '\x00', '\x00', '\x00', '\xd2', '\xf2',
302 '\xcc', '\xec', '\x96', '\x97', '\x00', '\x00', '\x00', '\x91',
303 '\x92', '\x82', '\x00', '\x93', '\x94', '\x84', '\x00', '\x86',
304 '\x87', '\x95', '\x00', '\x00', '\x00', '\x85', '\x89', '\x8b',
305 '\x9b', '\xfe', '\x99',