1/*
2 * Copyright (C) 2012-2018 Apple Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26// DO NOT EDIT! - this file autogenerated by YarrCanonicalize.js
27
28#include "config.h"
29#include "YarrCanonicalize.h"
30
31namespace JSC { namespace Yarr {
32
33const UChar32 ucs2CharacterSet0[] = { 0x01c4, 0x01c5, 0x01c6, 0 };
34const UChar32 ucs2CharacterSet1[] = { 0x01c7, 0x01c8, 0x01c9, 0 };
35const UChar32 ucs2CharacterSet2[] = { 0x01ca, 0x01cb, 0x01cc, 0 };
36const UChar32 ucs2CharacterSet3[] = { 0x01f1, 0x01f2, 0x01f3, 0 };
37const UChar32 ucs2CharacterSet4[] = { 0x0392, 0x03b2, 0x03d0, 0 };
38const UChar32 ucs2CharacterSet5[] = { 0x0395, 0x03b5, 0x03f5, 0 };
39const UChar32 ucs2CharacterSet6[] = { 0x0398, 0x03b8, 0x03d1, 0 };
40const UChar32 ucs2CharacterSet7[] = { 0x0345, 0x0399, 0x03b9, 0x1fbe, 0 };
41const UChar32 ucs2CharacterSet8[] = { 0x039a, 0x03ba, 0x03f0, 0 };
42const UChar32 ucs2CharacterSet9[] = { 0x00b5, 0x039c, 0x03bc, 0 };
43const UChar32 ucs2CharacterSet10[] = { 0x03a0, 0x03c0, 0x03d6, 0 };
44const UChar32 ucs2CharacterSet11[] = { 0x03a1, 0x03c1, 0x03f1, 0 };
45const UChar32 ucs2CharacterSet12[] = { 0x03a3, 0x03c2, 0x03c3, 0 };
46const UChar32 ucs2CharacterSet13[] = { 0x03a6, 0x03c6, 0x03d5, 0 };
47const UChar32 ucs2CharacterSet14[] = { 0x0412, 0x0432, 0x1c80, 0 };
48const UChar32 ucs2CharacterSet15[] = { 0x0414, 0x0434, 0x1c81, 0 };
49const UChar32 ucs2CharacterSet16[] = { 0x041e, 0x043e, 0x1c82, 0 };
50const UChar32 ucs2CharacterSet17[] = { 0x0421, 0x0441, 0x1c83, 0 };
51const UChar32 ucs2CharacterSet18[] = { 0x0422, 0x0442, 0x1c84, 0x1c85, 0 };
52const UChar32 ucs2CharacterSet19[] = { 0x042a, 0x044a, 0x1c86, 0 };
53const UChar32 ucs2CharacterSet20[] = { 0x0462, 0x0463, 0x1c87, 0 };
54const UChar32 ucs2CharacterSet21[] = { 0x1e60, 0x1e61, 0x1e9b, 0 };
55const UChar32 ucs2CharacterSet22[] = { 0x1c88, 0xa64a, 0xa64b, 0 };
56
57static const size_t UCS2_CANONICALIZATION_SETS = 23;
58const UChar32* const ucs2CharacterSetInfo[UCS2_CANONICALIZATION_SETS] = {
59 ucs2CharacterSet0,
60 ucs2CharacterSet1,
61 ucs2CharacterSet2,
62 ucs2CharacterSet3,
63 ucs2CharacterSet4,
64 ucs2CharacterSet5,
65 ucs2CharacterSet6,
66 ucs2CharacterSet7,
67 ucs2CharacterSet8,
68 ucs2CharacterSet9,
69 ucs2CharacterSet10,
70 ucs2CharacterSet11,
71 ucs2CharacterSet12,
72 ucs2CharacterSet13,
73 ucs2CharacterSet14,
74 ucs2CharacterSet15,
75 ucs2CharacterSet16,
76 ucs2CharacterSet17,
77 ucs2CharacterSet18,
78 ucs2CharacterSet19,
79 ucs2CharacterSet20,
80 ucs2CharacterSet21,
81 ucs2CharacterSet22,
82};
83
84const size_t UCS2_CANONICALIZATION_RANGES = 448;
85const CanonicalizationRange ucs2RangeInfo[UCS2_CANONICALIZATION_RANGES] = {
86 { 0x0000, 0x0040, 0x0000, CanonicalizeUnique },
87 { 0x0041, 0x005a, 0x0020, CanonicalizeRangeLo },
88 { 0x005b, 0x0060, 0x0000, CanonicalizeUnique },
89 { 0x0061, 0x007a, 0x0020, CanonicalizeRangeHi },
90 { 0x007b, 0x00b4, 0x0000, CanonicalizeUnique },
91 { 0x00b5, 0x00b5, 0x0009, CanonicalizeSet },
92 { 0x00b6, 0x00bf, 0x0000, CanonicalizeUnique },
93 { 0x00c0, 0x00d6, 0x0020, CanonicalizeRangeLo },
94 { 0x00d7, 0x00d7, 0x0000, CanonicalizeUnique },
95 { 0x00d8, 0x00de, 0x0020, CanonicalizeRangeLo },
96 { 0x00df, 0x00df, 0x0000, CanonicalizeUnique },
97 { 0x00e0, 0x00f6, 0x0020, CanonicalizeRangeHi },
98 { 0x00f7, 0x00f7, 0x0000, CanonicalizeUnique },
99 { 0x00f8, 0x00fe, 0x0020, CanonicalizeRangeHi },
100 { 0x00ff, 0x00ff, 0x0079, CanonicalizeRangeLo },
101 { 0x0100, 0x012f, 0x0000, CanonicalizeAlternatingAligned },
102 { 0x0130, 0x0131, 0x0000, CanonicalizeUnique },
103 { 0x0132, 0x0137, 0x0000, CanonicalizeAlternatingAligned },
104 { 0x0138, 0x0138, 0x0000, CanonicalizeUnique },
105 { 0x0139, 0x0148, 0x0000, CanonicalizeAlternatingUnaligned },
106 { 0x0149, 0x0149, 0x0000, CanonicalizeUnique },
107 { 0x014a, 0x0177, 0x0000, CanonicalizeAlternatingAligned },
108 { 0x0178, 0x0178, 0x0079, CanonicalizeRangeHi },
109 { 0x0179, 0x017e, 0x0000, CanonicalizeAlternatingUnaligned },
110 { 0x017f, 0x017f, 0x0000, CanonicalizeUnique },
111 { 0x0180, 0x0180, 0x00c3, CanonicalizeRangeLo },
112 { 0x0181, 0x0181, 0x00d2, CanonicalizeRangeLo },
113 { 0x0182, 0x0185, 0x0000, CanonicalizeAlternatingAligned },
114 { 0x0186, 0x0186, 0x00ce, CanonicalizeRangeLo },
115 { 0x0187, 0x0188, 0x0000, CanonicalizeAlternatingUnaligned },
116 { 0x0189, 0x018a, 0x00cd, CanonicalizeRangeLo },
117 { 0x018b, 0x018c, 0x0000, CanonicalizeAlternatingUnaligned },
118 { 0x018d, 0x018d, 0x0000, CanonicalizeUnique },
119 { 0x018e, 0x018e, 0x004f, CanonicalizeRangeLo },
120 { 0x018f, 0x018f, 0x00ca, CanonicalizeRangeLo },
121 { 0x0190, 0x0190, 0x00cb, CanonicalizeRangeLo },
122 { 0x0191, 0x0192, 0x0000, CanonicalizeAlternatingUnaligned },
123 { 0x0193, 0x0193, 0x00cd, CanonicalizeRangeLo },
124 { 0x0194, 0x0194, 0x00cf, CanonicalizeRangeLo },
125 { 0x0195, 0x0195, 0x0061, CanonicalizeRangeLo },
126 { 0x0196, 0x0196, 0x00d3, CanonicalizeRangeLo },
127 { 0x0197, 0x0197, 0x00d1, CanonicalizeRangeLo },
128 { 0x0198, 0x0199, 0x0000, CanonicalizeAlternatingAligned },
129 { 0x019a, 0x019a, 0x00a3, CanonicalizeRangeLo },
130 { 0x019b, 0x019b, 0x0000, CanonicalizeUnique },
131 { 0x019c, 0x019c, 0x00d3, CanonicalizeRangeLo },
132 { 0x019d, 0x019d, 0x00d5, CanonicalizeRangeLo },
133 { 0x019e, 0x019e, 0x0082, CanonicalizeRangeLo },
134 { 0x019f, 0x019f, 0x00d6, CanonicalizeRangeLo },
135 { 0x01a0, 0x01a5, 0x0000, CanonicalizeAlternatingAligned },
136 { 0x01a6, 0x01a6, 0x00da, CanonicalizeRangeLo },
137 { 0x01a7, 0x01a8, 0x0000, CanonicalizeAlternatingUnaligned },
138 { 0x01a9, 0x01a9, 0x00da, CanonicalizeRangeLo },
139 { 0x01aa, 0x01ab, 0x0000, CanonicalizeUnique },
140 { 0x01ac, 0x01ad, 0x0000, CanonicalizeAlternatingAligned },
141 { 0x01ae, 0x01ae, 0x00da, CanonicalizeRangeLo },
142 { 0x01af, 0x01b0, 0x0000, CanonicalizeAlternatingUnaligned },
143 { 0x01b1, 0x01b2, 0x00d9, CanonicalizeRangeLo },
144 { 0x01b3, 0x01b6, 0x0000, CanonicalizeAlternatingUnaligned },
145 { 0x01b7, 0x01b7, 0x00db, CanonicalizeRangeLo },
146 { 0x01b8, 0x01b9, 0x0000, CanonicalizeAlternatingAligned },
147 { 0x01ba, 0x01bb, 0x0000, CanonicalizeUnique },
148 { 0x01bc, 0x01bd, 0x0000, CanonicalizeAlternatingAligned },
149 { 0x01be, 0x01be, 0x0000, CanonicalizeUnique },
150 { 0x01bf, 0x01bf, 0x0038, CanonicalizeRangeLo },
151 { 0x01c0, 0x01c3, 0x0000, CanonicalizeUnique },
152 { 0x01c4, 0x01c6, 0x0000, CanonicalizeSet },
153 { 0x01c7, 0x01c9, 0x0001, CanonicalizeSet },
154 { 0x01ca, 0x01cc, 0x0002, CanonicalizeSet },
155 { 0x01cd, 0x01dc, 0x0000, CanonicalizeAlternatingUnaligned },
156 { 0x01dd, 0x01dd, 0x004f, CanonicalizeRangeHi },
157 { 0x01de, 0x01ef, 0x0000, CanonicalizeAlternatingAligned },
158 { 0x01f0, 0x01f0, 0x0000, CanonicalizeUnique },
159 { 0x01f1, 0x01f3, 0x0003, CanonicalizeSet },
160 { 0x01f4, 0x01f5, 0x0000, CanonicalizeAlternatingAligned },
161 { 0x01f6, 0x01f6, 0x0061, CanonicalizeRangeHi },
162 { 0x01f7, 0x01f7, 0x0038, CanonicalizeRangeHi },
163 { 0x01f8, 0x021f, 0x0000, CanonicalizeAlternatingAligned },
164 { 0x0220, 0x0220, 0x0082, CanonicalizeRangeHi },
165 { 0x0221, 0x0221, 0x0000, CanonicalizeUnique },
166 { 0x0222, 0x0233, 0x0000, CanonicalizeAlternatingAligned },
167 { 0x0234, 0x0239, 0x0000, CanonicalizeUnique },
168 { 0x023a, 0x023a, 0x2a2b, CanonicalizeRangeLo },
169 { 0x023b, 0x023c, 0x0000, CanonicalizeAlternatingUnaligned },
170 { 0x023d, 0x023d, 0x00a3, CanonicalizeRangeHi },
171 { 0x023e, 0x023e, 0x2a28, CanonicalizeRangeLo },
172 { 0x023f, 0x0240, 0x2a3f, CanonicalizeRangeLo },
173 { 0x0241, 0x0242, 0x0000, CanonicalizeAlternatingUnaligned },
174 { 0x0243, 0x0243, 0x00c3, CanonicalizeRangeHi },
175 { 0x0244, 0x0244, 0x0045, CanonicalizeRangeLo },
176 { 0x0245, 0x0245, 0x0047, CanonicalizeRangeLo },
177 { 0x0246, 0x024f, 0x0000, CanonicalizeAlternatingAligned },
178 { 0x0250, 0x0250, 0x2a1f, CanonicalizeRangeLo },
179 { 0x0251, 0x0251, 0x2a1c, CanonicalizeRangeLo },
180 { 0x0252, 0x0252, 0x2a1e, CanonicalizeRangeLo },
181 { 0x0253, 0x0253, 0x00d2, CanonicalizeRangeHi },
182 { 0x0254, 0x0254, 0x00ce, CanonicalizeRangeHi },
183 { 0x0255, 0x0255, 0x0000, CanonicalizeUnique },
184 { 0x0256, 0x0257, 0x00cd, CanonicalizeRangeHi },
185 { 0x0258, 0x0258, 0x0000, CanonicalizeUnique },
186 { 0x0259, 0x0259, 0x00ca, CanonicalizeRangeHi },
187 { 0x025a, 0x025a, 0x0000, CanonicalizeUnique },
188 { 0x025b, 0x025b, 0x00cb, CanonicalizeRangeHi },
189 { 0x025c, 0x025c, 0xa54f, CanonicalizeRangeLo },
190 { 0x025d, 0x025f, 0x0000, CanonicalizeUnique },
191 { 0x0260, 0x0260, 0x00cd, CanonicalizeRangeHi },
192 { 0x0261, 0x0261, 0xa54b, CanonicalizeRangeLo },
193 { 0x0262, 0x0262, 0x0000, CanonicalizeUnique },
194 { 0x0263, 0x0263, 0x00cf, CanonicalizeRangeHi },
195 { 0x0264, 0x0264, 0x0000, CanonicalizeUnique },
196 { 0x0265, 0x0265, 0xa528, CanonicalizeRangeLo },
197 { 0x0266, 0x0266, 0xa544, CanonicalizeRangeLo },
198 { 0x0267, 0x0267, 0x0000, CanonicalizeUnique },
199 { 0x0268, 0x0268, 0x00d1, CanonicalizeRangeHi },
200 { 0x0269, 0x0269, 0x00d3, CanonicalizeRangeHi },
201 { 0x026a, 0x026a, 0xa544, CanonicalizeRangeLo },
202 { 0x026b, 0x026b, 0x29f7, CanonicalizeRangeLo },
203 { 0x026c, 0x026c, 0xa541, CanonicalizeRangeLo },
204 { 0x026d, 0x026e, 0x0000, CanonicalizeUnique },
205 { 0x026f, 0x026f, 0x00d3, CanonicalizeRangeHi },
206 { 0x0270, 0x0270, 0x0000, CanonicalizeUnique },
207 { 0x0271, 0x0271, 0x29fd, CanonicalizeRangeLo },
208 { 0x0272, 0x0272, 0x00d5, CanonicalizeRangeHi },
209 { 0x0273, 0x0274, 0x0000, CanonicalizeUnique },
210 { 0x0275, 0x0275, 0x00d6, CanonicalizeRangeHi },
211 { 0x0276, 0x027c, 0x0000, CanonicalizeUnique },
212 { 0x027d, 0x027d, 0x29e7, CanonicalizeRangeLo },
213 { 0x027e, 0x027f, 0x0000, CanonicalizeUnique },
214 { 0x0280, 0x0280, 0x00da, CanonicalizeRangeHi },
215 { 0x0281, 0x0282, 0x0000, CanonicalizeUnique },
216 { 0x0283, 0x0283, 0x00da, CanonicalizeRangeHi },
217 { 0x0284, 0x0286, 0x0000, CanonicalizeUnique },
218 { 0x0287, 0x0287, 0xa52a, CanonicalizeRangeLo },
219 { 0x0288, 0x0288, 0x00da, CanonicalizeRangeHi },
220 { 0x0289, 0x0289, 0x0045, CanonicalizeRangeHi },
221 { 0x028a, 0x028b, 0x00d9, CanonicalizeRangeHi },
222 { 0x028c, 0x028c, 0x0047, CanonicalizeRangeHi },
223 { 0x028d, 0x0291, 0x0000, CanonicalizeUnique },
224 { 0x0292, 0x0292, 0x00db, CanonicalizeRangeHi },
225 { 0x0293, 0x029c, 0x0000, CanonicalizeUnique },
226 { 0x029d, 0x029d, 0xa515, CanonicalizeRangeLo },
227 { 0x029e, 0x029e, 0xa512, CanonicalizeRangeLo },
228 { 0x029f, 0x0344, 0x0000, CanonicalizeUnique },
229 { 0x0345, 0x0345, 0x0007, CanonicalizeSet },
230 { 0x0346, 0x036f, 0x0000, CanonicalizeUnique },
231 { 0x0370, 0x0373, 0x0000, CanonicalizeAlternatingAligned },
232 { 0x0374, 0x0375, 0x0000, CanonicalizeUnique },
233 { 0x0376, 0x0377, 0x0000, CanonicalizeAlternatingAligned },
234 { 0x0378, 0x037a, 0x0000, CanonicalizeUnique },
235 { 0x037b, 0x037d, 0x0082, CanonicalizeRangeLo },
236 { 0x037e, 0x037e, 0x0000, CanonicalizeUnique },
237 { 0x037f, 0x037f, 0x0074, CanonicalizeRangeLo },
238 { 0x0380, 0x0385, 0x0000, CanonicalizeUnique },
239 { 0x0386, 0x0386, 0x0026, CanonicalizeRangeLo },
240 { 0x0387, 0x0387, 0x0000, CanonicalizeUnique },
241 { 0x0388, 0x038a, 0x0025, CanonicalizeRangeLo },
242 { 0x038b, 0x038b, 0x0000, CanonicalizeUnique },
243 { 0x038c, 0x038c, 0x0040, CanonicalizeRangeLo },
244 { 0x038d, 0x038d, 0x0000, CanonicalizeUnique },
245 { 0x038e, 0x038f, 0x003f, CanonicalizeRangeLo },
246 { 0x0390, 0x0390, 0x0000, CanonicalizeUnique },
247 { 0x0391, 0x0391, 0x0020, CanonicalizeRangeLo },
248 { 0x0392, 0x0392, 0x0004, CanonicalizeSet },
249 { 0x0393, 0x0394, 0x0020, CanonicalizeRangeLo },
250 { 0x0395, 0x0395, 0x0005, CanonicalizeSet },
251 { 0x0396, 0x0397, 0x0020, CanonicalizeRangeLo },
252 { 0x0398, 0x0398, 0x0006, CanonicalizeSet },
253 { 0x0399, 0x0399, 0x0007, CanonicalizeSet },
254 { 0x039a, 0x039a, 0x0008, CanonicalizeSet },
255 { 0x039b, 0x039b, 0x0020, CanonicalizeRangeLo },
256 { 0x039c, 0x039c, 0x0009, CanonicalizeSet },
257 { 0x039d, 0x039f, 0x0020, CanonicalizeRangeLo },
258 { 0x03a0, 0x03a0, 0x000a, CanonicalizeSet },
259 { 0x03a1, 0x03a1, 0x000b, CanonicalizeSet },
260 { 0x03a2, 0x03a2, 0x0000, CanonicalizeUnique },
261 { 0x03a3, 0x03a3, 0x000c, CanonicalizeSet },
262 { 0x03a4, 0x03a5, 0x0020, CanonicalizeRangeLo },
263 { 0x03a6, 0x03a6, 0x000d, CanonicalizeSet },
264 { 0x03a7, 0x03ab, 0x0020, CanonicalizeRangeLo },
265 { 0x03ac, 0x03ac, 0x0026, CanonicalizeRangeHi },
266 { 0x03ad, 0x03af, 0x0025, CanonicalizeRangeHi },
267 { 0x03b0, 0x03b0, 0x0000, CanonicalizeUnique },
268 { 0x03b1, 0x03b1, 0x0020, CanonicalizeRangeHi },
269 { 0x03b2, 0x03b2, 0x0004, CanonicalizeSet },
270 { 0x03b3, 0x03b4, 0x0020, CanonicalizeRangeHi },
271 { 0x03b5, 0x03b5, 0x0005, CanonicalizeSet },
272 { 0x03b6, 0x03b7, 0x0020, CanonicalizeRangeHi },
273 { 0x03b8, 0x03b8, 0x0006, CanonicalizeSet },
274 { 0x03b9, 0x03b9, 0x0007, CanonicalizeSet },
275 { 0x03ba, 0x03ba, 0x0008, CanonicalizeSet },
276 { 0x03bb, 0x03bb, 0x0020, CanonicalizeRangeHi },
277 { 0x03bc, 0x03bc, 0x0009, CanonicalizeSet },
278 { 0x03bd, 0x03bf, 0x0020, CanonicalizeRangeHi },
279 { 0x03c0, 0x03c0, 0x000a, CanonicalizeSet },
280 { 0x03c1, 0x03c1, 0x000b, CanonicalizeSet },
281 { 0x03c2, 0x03c3, 0x000c, CanonicalizeSet },
282 { 0x03c4, 0x03c5, 0x0020, CanonicalizeRangeHi },
283 { 0x03c6, 0x03c6, 0x000d, CanonicalizeSet },
284 { 0x03c7, 0x03cb, 0x0020, CanonicalizeRangeHi },
285 { 0x03cc, 0x03cc, 0x0040, CanonicalizeRangeHi },
286 { 0x03cd, 0x03ce, 0x003f, CanonicalizeRangeHi },
287 { 0x03cf, 0x03cf, 0x0008, CanonicalizeRangeLo },
288 { 0x03d0, 0x03d0, 0x0004, CanonicalizeSet },
289 { 0x03d1, 0x03d1, 0x0006, CanonicalizeSet },
290 { 0x03d2, 0x03d4, 0x0000, CanonicalizeUnique },
291 { 0x03d5, 0x03d5, 0x000d, CanonicalizeSet },
292 { 0x03d6, 0x03d6, 0x000a, CanonicalizeSet },
293 { 0x03d7, 0x03d7, 0x0008, CanonicalizeRangeHi },
294 { 0x03d8, 0x03ef, 0x0000, CanonicalizeAlternatingAligned },
295 { 0x03f0, 0x03f0, 0x0008, CanonicalizeSet },
296 { 0x03f1, 0x03f1, 0x000b, CanonicalizeSet },
297 { 0x03f2, 0x03f2, 0x0007, CanonicalizeRangeLo },
298 { 0x03f3, 0x03f3, 0x0074, CanonicalizeRangeHi },
299 { 0x03f4, 0x03f4, 0x0000, CanonicalizeUnique },
300 { 0x03f5, 0x03f5, 0x0005, CanonicalizeSet },
301 { 0x03f6, 0x03f6, 0x0000, CanonicalizeUnique },
302 { 0x03f7, 0x03f8, 0x0000, CanonicalizeAlternatingUnaligned },
303 { 0x03f9, 0x03f9, 0x0007, CanonicalizeRangeHi },
304 { 0x03fa, 0x03fb, 0x0000, CanonicalizeAlternatingAligned },
305 { 0x03fc, 0x03fc, 0x0000, CanonicalizeUnique },
306 { 0x03fd, 0x03ff, 0x0082, CanonicalizeRangeHi },
307 { 0x0400, 0x040f, 0x0050, CanonicalizeRangeLo },
308 { 0x0410, 0x0411, 0x0020, CanonicalizeRangeLo },
309 { 0x0412, 0x0412, 0x000e, CanonicalizeSet },
310 { 0x0413, 0x0413, 0x0020, CanonicalizeRangeLo },
311 { 0x0414, 0x0414, 0x000f, CanonicalizeSet },
312 { 0x0415, 0x041d, 0x0020, CanonicalizeRangeLo },
313 { 0x041e, 0x041e, 0x0010, CanonicalizeSet },
314 { 0x041f, 0x0420, 0x0020, CanonicalizeRangeLo },
315 { 0x0421, 0x0421, 0x0011, CanonicalizeSet },
316 { 0x0422, 0x0422, 0x0012, CanonicalizeSet },
317 { 0x0423, 0x0429, 0x0020, CanonicalizeRangeLo },
318 { 0x042a, 0x042a, 0x0013, CanonicalizeSet },
319 { 0x042b, 0x042f, 0x0020, CanonicalizeRangeLo },
320 { 0x0430, 0x0431, 0x0020, CanonicalizeRangeHi },
321 { 0x0432, 0x0432, 0x000e, CanonicalizeSet },
322 { 0x0433, 0x0433, 0x0020, CanonicalizeRangeHi },
323 { 0x0434, 0x0434, 0x000f, CanonicalizeSet },
324 { 0x0435, 0x043d, 0x0020, CanonicalizeRangeHi },
325 { 0x043e, 0x043e, 0x0010, CanonicalizeSet },
326 { 0x043f, 0x0440, 0x0020, CanonicalizeRangeHi },
327 { 0x0441, 0x0441, 0x0011, CanonicalizeSet },
328 { 0x0442, 0x0442, 0x0012, CanonicalizeSet },
329 { 0x0443, 0x0449, 0x0020, CanonicalizeRangeHi },
330 { 0x044a, 0x044a, 0x0013, CanonicalizeSet },
331 { 0x044b, 0x044f, 0x0020, CanonicalizeRangeHi },
332 { 0x0450, 0x045f, 0x0050, CanonicalizeRangeHi },
333 { 0x0460, 0x0461, 0x0000, CanonicalizeAlternatingAligned },
334 { 0x0462, 0x0463, 0x0014, CanonicalizeSet },
335 { 0x0464, 0x0481, 0x0000, CanonicalizeAlternatingAligned },
336 { 0x0482, 0x0489, 0x0000, CanonicalizeUnique },
337 { 0x048a, 0x04bf, 0x0000, CanonicalizeAlternatingAligned },
338 { 0x04c0, 0x04c0, 0x000f, CanonicalizeRangeLo },
339 { 0x04c1, 0x04ce, 0x0000, CanonicalizeAlternatingUnaligned },
340 { 0x04cf, 0x04cf, 0x000f, CanonicalizeRangeHi },
341 { 0x04d0, 0x052f, 0x0000, CanonicalizeAlternatingAligned },
342 { 0x0530, 0x0530, 0x0000, CanonicalizeUnique },
343 { 0x0531, 0x0556, 0x0030, CanonicalizeRangeLo },
344 { 0x0557, 0x0560, 0x0000, CanonicalizeUnique },
345 { 0x0561, 0x0586, 0x0030, CanonicalizeRangeHi },
346 { 0x0587, 0x109f, 0x0000, CanonicalizeUnique },
347 { 0x10a0, 0x10c5, 0x1c60, CanonicalizeRangeLo },
348 { 0x10c6, 0x10c6, 0x0000, CanonicalizeUnique },
349 { 0x10c7, 0x10c7, 0x1c60, CanonicalizeRangeLo },
350 { 0x10c8, 0x10cc, 0x0000, CanonicalizeUnique },
351 { 0x10cd, 0x10cd, 0x1c60, CanonicalizeRangeLo },
352 { 0x10ce, 0x10cf, 0x0000, CanonicalizeUnique },
353 { 0x10d0, 0x10fa, 0x0bc0, CanonicalizeRangeLo },
354 { 0x10fb, 0x10fc, 0x0000, CanonicalizeUnique },
355 { 0x10fd, 0x10ff, 0x0bc0, CanonicalizeRangeLo },
356 { 0x1100, 0x139f, 0x0000, CanonicalizeUnique },
357 { 0x13a0, 0x13ef, 0x97d0, CanonicalizeRangeLo },
358 { 0x13f0, 0x13f5, 0x0008, CanonicalizeRangeLo },
359 { 0x13f6, 0x13f7, 0x0000, CanonicalizeUnique },
360 { 0x13f8, 0x13fd, 0x0008, CanonicalizeRangeHi },
361 { 0x13fe, 0x1c7f, 0x0000, CanonicalizeUnique },
362 { 0x1c80, 0x1c80, 0x000e, CanonicalizeSet },
363 { 0x1c81, 0x1c81, 0x000f, CanonicalizeSet },
364 { 0x1c82, 0x1c82, 0x0010, CanonicalizeSet },
365 { 0x1c83, 0x1c83, 0x0011, CanonicalizeSet },
366 { 0x1c84, 0x1c85, 0x0012, CanonicalizeSet },
367 { 0x1c86, 0x1c86, 0x0013, CanonicalizeSet },
368 { 0x1c87, 0x1c87, 0x0014, CanonicalizeSet },
369 { 0x1c88, 0x1c88, 0x0016, CanonicalizeSet },
370 { 0x1c89, 0x1c8f, 0x0000, CanonicalizeUnique },
371 { 0x1c90, 0x1cba, 0x0bc0, CanonicalizeRangeHi },
372 { 0x1cbb, 0x1cbc, 0x0000, CanonicalizeUnique },
373 { 0x1cbd, 0x1cbf, 0x0bc0, CanonicalizeRangeHi },
374 { 0x1cc0, 0x1d78, 0x0000, CanonicalizeUnique },
375 { 0x1d79, 0x1d79, 0x8a04, CanonicalizeRangeLo },
376 { 0x1d7a, 0x1d7c, 0x0000, CanonicalizeUnique },
377 { 0x1d7d, 0x1d7d, 0x0ee6, CanonicalizeRangeLo },
378 { 0x1d7e, 0x1dff, 0x0000, CanonicalizeUnique },
379 { 0x1e00, 0x1e5f, 0x0000, CanonicalizeAlternatingAligned },
380 { 0x1e60, 0x1e61, 0x0015, CanonicalizeSet },
381 { 0x1e62, 0x1e95, 0x0000, CanonicalizeAlternatingAligned },
382 { 0x1e96, 0x1e9a, 0x0000, CanonicalizeUnique },
383 { 0x1e9b, 0x1e9b, 0x0015, CanonicalizeSet },
384 { 0x1e9c, 0x1e9f, 0x0000, CanonicalizeUnique },
385 { 0x1ea0, 0x1eff, 0x0000, CanonicalizeAlternatingAligned },
386 { 0x1f00, 0x1f07, 0x0008, CanonicalizeRangeLo },
387 { 0x1f08, 0x1f0f, 0x0008, CanonicalizeRangeHi },
388 { 0x1f10, 0x1f15, 0x0008, CanonicalizeRangeLo },
389 { 0x1f16, 0x1f17, 0x0000, CanonicalizeUnique },
390 { 0x1f18, 0x1f1d, 0x0008, CanonicalizeRangeHi },
391 { 0x1f1e, 0x1f1f, 0x0000, CanonicalizeUnique },
392 { 0x1f20, 0x1f27, 0x0008, CanonicalizeRangeLo },
393 { 0x1f28, 0x1f2f, 0x0008, CanonicalizeRangeHi },
394 { 0x1f30, 0x1f37, 0x0008, CanonicalizeRangeLo },
395 { 0x1f38, 0x1f3f, 0x0008, CanonicalizeRangeHi },
396 { 0x1f40, 0x1f45, 0x0008, CanonicalizeRangeLo },
397 { 0x1f46, 0x1f47, 0x0000, CanonicalizeUnique },
398 { 0x1f48, 0x1f4d, 0x0008, CanonicalizeRangeHi },
399 { 0x1f4e, 0x1f50, 0x0000, CanonicalizeUnique },
400 { 0x1f51, 0x1f51, 0x0008, CanonicalizeRangeLo },
401 { 0x1f52, 0x1f52, 0x0000, CanonicalizeUnique },
402 { 0x1f53, 0x1f53, 0x0008, CanonicalizeRangeLo },
403 { 0x1f54, 0x1f54, 0x0000, CanonicalizeUnique },
404 { 0x1f55, 0x1f55, 0x0008, CanonicalizeRangeLo },
405 { 0x1f56, 0x1f56, 0x0000, CanonicalizeUnique },
406 { 0x1f57, 0x1f57, 0x0008, CanonicalizeRangeLo },
407 { 0x1f58, 0x1f58, 0x0000, CanonicalizeUnique },
408 { 0x1f59, 0x1f59, 0x0008, CanonicalizeRangeHi },
409 { 0x1f5a, 0x1f5a, 0x0000, CanonicalizeUnique },
410 { 0x1f5b, 0x1f5b, 0x0008, CanonicalizeRangeHi },
411 { 0x1f5c, 0x1f5c, 0x0000, CanonicalizeUnique },
412 { 0x1f5d, 0x1f5d, 0x0008, CanonicalizeRangeHi },
413 { 0x1f5e, 0x1f5e, 0x0000, CanonicalizeUnique },
414 { 0x1f5f, 0x1f5f, 0x0008, CanonicalizeRangeHi },
415 { 0x1f60, 0x1f67, 0x0008, CanonicalizeRangeLo },
416 { 0x1f68, 0x1f6f, 0x0008, CanonicalizeRangeHi },
417 { 0x1f70, 0x1f71, 0x004a, CanonicalizeRangeLo },
418 { 0x1f72, 0x1f75, 0x0056, CanonicalizeRangeLo },
419 { 0x1f76, 0x1f77, 0x0064, CanonicalizeRangeLo },
420 { 0x1f78, 0x1f79, 0x0080, CanonicalizeRangeLo },
421 { 0x1f7a, 0x1f7b, 0x0070, CanonicalizeRangeLo },
422 { 0x1f7c, 0x1f7d, 0x007e, CanonicalizeRangeLo },
423 { 0x1f7e, 0x1faf, 0x0000, CanonicalizeUnique },
424 { 0x1fb0, 0x1fb1, 0x0008, CanonicalizeRangeLo },
425 { 0x1fb2, 0x1fb7, 0x0000, CanonicalizeUnique },
426 { 0x1fb8, 0x1fb9, 0x0008, CanonicalizeRangeHi },
427 { 0x1fba, 0x1fbb, 0x004a, CanonicalizeRangeHi },
428 { 0x1fbc, 0x1fbd, 0x0000, CanonicalizeUnique },
429 { 0x1fbe, 0x1fbe, 0x0007, CanonicalizeSet },
430 { 0x1fbf, 0x1fc7, 0x0000, CanonicalizeUnique },
431 { 0x1fc8, 0x1fcb, 0x0056, CanonicalizeRangeHi },
432 { 0x1fcc, 0x1fcf, 0x0000, CanonicalizeUnique },
433 { 0x1fd0, 0x1fd1, 0x0008, CanonicalizeRangeLo },
434 { 0x1fd2, 0x1fd7, 0x0000, CanonicalizeUnique },
435 { 0x1fd8, 0x1fd9, 0x0008, CanonicalizeRangeHi },
436 { 0x1fda, 0x1fdb, 0x0064, CanonicalizeRangeHi },
437 { 0x1fdc, 0x1fdf, 0x0000, CanonicalizeUnique },
438 { 0x1fe0, 0x1fe1, 0x0008, CanonicalizeRangeLo },
439 { 0x1fe2, 0x1fe4, 0x0000, CanonicalizeUnique },
440 { 0x1fe5, 0x1fe5, 0x0007, CanonicalizeRangeLo },
441 { 0x1fe6, 0x1fe7, 0x0000, CanonicalizeUnique },
442 { 0x1fe8, 0x1fe9, 0x0008, CanonicalizeRangeHi },
443 { 0x1fea, 0x1feb, 0x0070, CanonicalizeRangeHi },
444 { 0x1fec, 0x1fec, 0x0007, CanonicalizeRangeHi },
445 { 0x1fed, 0x1ff7, 0x0000, CanonicalizeUnique },
446 { 0x1ff8, 0x1ff9, 0x0080, CanonicalizeRangeHi },
447 { 0x1ffa, 0x1ffb, 0x007e, CanonicalizeRangeHi },
448 { 0x1ffc, 0x2131, 0x0000, CanonicalizeUnique },
449 { 0x2132, 0x2132, 0x001c, CanonicalizeRangeLo },
450 { 0x2133, 0x214d, 0x0000, CanonicalizeUnique },
451 { 0x214e, 0x214e, 0x001c, CanonicalizeRangeHi },
452 { 0x214f, 0x215f, 0x0000, CanonicalizeUnique },
453 { 0x2160, 0x216f, 0x0010, CanonicalizeRangeLo },
454 { 0x2170, 0x217f, 0x0010, CanonicalizeRangeHi },
455 { 0x2180, 0x2182, 0x0000, CanonicalizeUnique },
456 { 0x2183, 0x2184, 0x0000, CanonicalizeAlternatingUnaligned },
457 { 0x2185, 0x24b5, 0x0000, CanonicalizeUnique },
458 { 0x24b6, 0x24cf, 0x001a, CanonicalizeRangeLo },
459 { 0x24d0, 0x24e9, 0x001a, CanonicalizeRangeHi },
460 { 0x24ea, 0x2bff, 0x0000, CanonicalizeUnique },
461 { 0x2c00, 0x2c2e, 0x0030, CanonicalizeRangeLo },
462 { 0x2c2f, 0x2c2f, 0x0000, CanonicalizeUnique },
463 { 0x2c30, 0x2c5e, 0x0030, CanonicalizeRangeHi },
464 { 0x2c5f, 0x2c5f, 0x0000, CanonicalizeUnique },
465 { 0x2c60, 0x2c61, 0x0000, CanonicalizeAlternatingAligned },
466 { 0x2c62, 0x2c62, 0x29f7, CanonicalizeRangeHi },
467 { 0x2c63, 0x2c63, 0x0ee6, CanonicalizeRangeHi },
468 { 0x2c64, 0x2c64, 0x29e7, CanonicalizeRangeHi },
469 { 0x2c65, 0x2c65, 0x2a2b, CanonicalizeRangeHi },
470 { 0x2c66, 0x2c66, 0x2a28, CanonicalizeRangeHi },
471 { 0x2c67, 0x2c6c, 0x0000, CanonicalizeAlternatingUnaligned },
472 { 0x2c6d, 0x2c6d, 0x2a1c, CanonicalizeRangeHi },
473 { 0x2c6e, 0x2c6e, 0x29fd, CanonicalizeRangeHi },
474 { 0x2c6f, 0x2c6f, 0x2a1f, CanonicalizeRangeHi },
475 { 0x2c70, 0x2c70, 0x2a1e, CanonicalizeRangeHi },
476 { 0x2c71, 0x2c71, 0x0000, CanonicalizeUnique },
477 { 0x2c72, 0x2c73, 0x0000, CanonicalizeAlternatingAligned },
478 { 0x2c74, 0x2c74, 0x0000, CanonicalizeUnique },
479 { 0x2c75, 0x2c76, 0x0000, CanonicalizeAlternatingUnaligned },
480 { 0x2c77, 0x2c7d, 0x0000, CanonicalizeUnique },
481 { 0x2c7e, 0x2c7f, 0x2a3f, CanonicalizeRangeHi },
482 { 0x2c80, 0x2ce3, 0x0000, CanonicalizeAlternatingAligned },
483 { 0x2ce4, 0x2cea, 0x0000, CanonicalizeUnique },
484 { 0x2ceb, 0x2cee, 0x0000, CanonicalizeAlternatingUnaligned },
485 { 0x2cef, 0x2cf1, 0x0000, CanonicalizeUnique },
486 { 0x2cf2, 0x2cf3, 0x0000, CanonicalizeAlternatingAligned },
487 { 0x2cf4, 0x2cff, 0x0000, CanonicalizeUnique },
488 { 0x2d00, 0x2d25, 0x1c60, CanonicalizeRangeHi },
489 { 0x2d26, 0x2d26, 0x0000, CanonicalizeUnique },
490 { 0x2d27, 0x2d27, 0x1c60, CanonicalizeRangeHi },
491 { 0x2d28, 0x2d2c, 0x0000, CanonicalizeUnique },
492 { 0x2d2d, 0x2d2d, 0x1c60, CanonicalizeRangeHi },
493 { 0x2d2e, 0xa63f, 0x0000, CanonicalizeUnique },
494 { 0xa640, 0xa649, 0x0000, CanonicalizeAlternatingAligned },
495 { 0xa64a, 0xa64b, 0x0016, CanonicalizeSet },
496 { 0xa64c, 0xa66d, 0x0000, CanonicalizeAlternatingAligned },
497 { 0xa66e, 0xa67f, 0x0000, CanonicalizeUnique },
498 { 0xa680, 0xa69b, 0x0000, CanonicalizeAlternatingAligned },
499 { 0xa69c, 0xa721, 0x0000, CanonicalizeUnique },
500 { 0xa722, 0xa72f, 0x0000, CanonicalizeAlternatingAligned },
501 { 0xa730, 0xa731, 0x0000, CanonicalizeUnique },
502 { 0xa732, 0xa76f, 0x0000, CanonicalizeAlternatingAligned },
503 { 0xa770, 0xa778, 0x0000, CanonicalizeUnique },
504 { 0xa779, 0xa77c, 0x0000, CanonicalizeAlternatingUnaligned },
505 { 0xa77d, 0xa77d, 0x8a04, CanonicalizeRangeHi },
506 { 0xa77e, 0xa787, 0x0000, CanonicalizeAlternatingAligned },
507 { 0xa788, 0xa78a, 0x0000, CanonicalizeUnique },
508 { 0xa78b, 0xa78c, 0x0000, CanonicalizeAlternatingUnaligned },
509 { 0xa78d, 0xa78d, 0xa528, CanonicalizeRangeHi },
510 { 0xa78e, 0xa78f, 0x0000, CanonicalizeUnique },
511 { 0xa790, 0xa793, 0x0000, CanonicalizeAlternatingAligned },
512 { 0xa794, 0xa795, 0x0000, CanonicalizeUnique },
513 { 0xa796, 0xa7a9, 0x0000, CanonicalizeAlternatingAligned },
514 { 0xa7aa, 0xa7aa, 0xa544, CanonicalizeRangeHi },
515 { 0xa7ab, 0xa7ab, 0xa54f, CanonicalizeRangeHi },
516 { 0xa7ac, 0xa7ac, 0xa54b, CanonicalizeRangeHi },
517 { 0xa7ad, 0xa7ad, 0xa541, CanonicalizeRangeHi },
518 { 0xa7ae, 0xa7ae, 0xa544, CanonicalizeRangeHi },
519 { 0xa7af, 0xa7af, 0x0000, CanonicalizeUnique },
520 { 0xa7b0, 0xa7b0, 0xa512, CanonicalizeRangeHi },
521 { 0xa7b1, 0xa7b1, 0xa52a, CanonicalizeRangeHi },
522 { 0xa7b2, 0xa7b2, 0xa515, CanonicalizeRangeHi },
523 { 0xa7b3, 0xa7b3, 0x03a0, CanonicalizeRangeLo },
524 { 0xa7b4, 0xa7b9, 0x0000, CanonicalizeAlternatingAligned },
525 { 0xa7ba, 0xab52, 0x0000, CanonicalizeUnique },
526 { 0xab53, 0xab53, 0x03a0, CanonicalizeRangeHi },
527 { 0xab54, 0xab6f, 0x0000, CanonicalizeUnique },
528 { 0xab70, 0xabbf, 0x97d0, CanonicalizeRangeHi },
529 { 0xabc0, 0xff20, 0x0000, CanonicalizeUnique },
530 { 0xff21, 0xff3a, 0x0020, CanonicalizeRangeLo },
531 { 0xff3b, 0xff40, 0x0000, CanonicalizeUnique },
532 { 0xff41, 0xff5a, 0x0020, CanonicalizeRangeHi },
533 { 0xff5b, 0xffff, 0x0000, CanonicalizeUnique },
534};
535
536const uint16_t canonicalTableLChar[256] = {
537 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
538 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, 0x1b, 0x1c, 0x1d, 0x1e, 0x1f,
539 0x20, 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x2b, 0x2c, 0x2d, 0x2e, 0x2f,
540 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
541 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
542 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
543 0x60, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
544 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x7b, 0x7c, 0x7d, 0x7e, 0x7f,
545 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f,
546 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f,
547 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf,
548 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0x39c, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf,
549 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
550 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf,
551 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf,
552 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xf7, 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0x178
553};
554
555} } // JSC::Yarr
556
557