1static const uint32_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] = 0x2800,
34 [0x21] = 0x282E,
35 [0x22] = 0x2810,
36 [0x23] = 0x283C,
37 [0x24] = 0x282B,
38 [0x25] = 0x2829,
39 [0x26] = 0x282F,
40 [0x27] = 0x2804,
41 [0x28] = 0x2837,
42 [0x29] = 0x283E,
43 [0x2a] = 0x2821,
44 [0x2b] = 0x282C,
45 [0x2c] = 0x2820,
46 [0x2d] = 0x2824,
47 [0x2e] = 0x2828,
48 [0x2f] = 0x280C,
49 [0x30] = 0x2834,
50 [0x31] = 0x2802,
51 [0x32] = 0x2806,
52 [0x33] = 0x2812,
53 [0x34] = 0x2832,
54 [0x35] = 0x2822,
55 [0x36] = 0x2816,
56 [0x37] = 0x2836,
57 [0x38] = 0x2826,
58 [0x39] = 0x2814,
59 [0x3a] = 0x2831,
60 [0x3b] = 0x2830,
61 [0x3c] = 0x2823,
62 [0x3d] = 0x283F,
63 [0x3e] = 0x281C,
64 [0x3f] = 0x2839,
65 [0x40] = 0x2808,
66 [0x41] = 0x2801,
67 [0x42] = 0x2803,
68 [0x43] = 0x2809,
69 [0x44] = 0x2819,
70 [0x45] = 0x2811,
71 [0x46] = 0x280B,
72 [0x47] = 0x281B,
73 [0x48] = 0x2813,
74 [0x49] = 0x280A,
75 [0x4a] = 0x281A,
76 [0x4b] = 0x2805,
77 [0x4c] = 0x2807,
78 [0x4d] = 0x280D,
79 [0x4e] = 0x281D,
80 [0x4f] = 0x2815,
81 [0x50] = 0x280F,
82 [0x51] = 0x281F,
83 [0x52] = 0x2817,
84 [0x53] = 0x280E,
85 [0x54] = 0x281E,
86 [0x55] = 0x2825,
87 [0x56] = 0x2827,
88 [0x57] = 0x283A,
89 [0x58] = 0x282D,
90 [0x59] = 0x283D,
91 [0x5a] = 0x2835,
92 [0x5b] = 0x282A,
93 [0x5c] = 0x2833,
94 [0x5d] = 0x283B,
95 [0x5e] = 0x2818,
96 [0x5f] = 0x2838,
97};
98static const struct gap from_idx[] = {
99 { .start = 0x0000, .end = 0x001f, .idx = 0 },
100 { .start = 0x2800, .end = 0x283f, .idx = -10208 },
101 { .start = 0xffff, .end = 0xffff, .idx = 0 }
102};
103static const char from_ucs4[] = {
104
105 '\x00', '\x01', '\x02', '\x03', '\x04', '\x05', '\x06', '\x07',
106 '\x08', '\x09', '\x0a', '\x0b', '\x0c', '\x0d', '\x0e', '\x0f',
107 '\x10', '\x11', '\x12', '\x13', '\x14', '\x15', '\x16', '\x17',
108 '\x18', '\x19', '\x1a', '\x1b', '\x1c', '\x1d', '\x1e', '\x1f',
109 '\x20', '\x41', '\x31', '\x42', '\x27', '\x4b', '\x32', '\x4c',
110 '\x40', '\x43', '\x49', '\x46', '\x2f', '\x4d', '\x53', '\x50',
111 '\x22', '\x45', '\x33', '\x48', '\x39', '\x4f', '\x36', '\x52',
112 '\x5e', '\x44', '\x4a', '\x47', '\x3e', '\x4e', '\x54', '\x51',
113 '\x2c', '\x2a', '\x35', '\x3c', '\x2d', '\x55', '\x38', '\x56',
114 '\x2e', '\x25', '\x5b', '\x24', '\x2b', '\x58', '\x21', '\x26',
115 '\x3b', '\x3a', '\x34', '\x5c', '\x30', '\x5a', '\x37', '\x28',
116 '\x5f', '\x3f', '\x57', '\x5d', '\x23', '\x59', '\x29', '\x3d',
117};
118