Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/property-escapes/generated/Emoji_Presentation.js

raw
1 // Copyright 2017 Mathias Bynens. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Mathias Bynens
6 description: >
7 Unicode property escapes for `Emoji_Presentation`
8 info: |
9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10 Unicode v10.0.0
11 Emoji v5.0 (UTR51)
12 esid: sec-static-semantics-unicodematchproperty-p
13 features: [regexp-unicode-property-escapes]
14 includes: [regExpUtils.js]
15 ---*/
16
17 const matchSymbols = buildString({
18 loneCodePoints: [
19 0x0023F0,
20 0x0023F3,
21 0x00267F,
22 0x002693,
23 0x0026A1,
24 0x0026CE,
25 0x0026D4,
26 0x0026EA,
27 0x0026F5,
28 0x0026FA,
29 0x0026FD,
30 0x002705,
31 0x002728,
32 0x00274C,
33 0x00274E,
34 0x002757,
35 0x0027B0,
36 0x0027BF,
37 0x002B50,
38 0x002B55,
39 0x01F004,
40 0x01F0CF,
41 0x01F18E,
42 0x01F201,
43 0x01F21A,
44 0x01F22F,
45 0x01F3F4,
46 0x01F440,
47 0x01F57A,
48 0x01F5A4,
49 0x01F6CC,
50 0x01F9C0
51 ],
52 ranges: [
53 [0x00231A, 0x00231B],
54 [0x0023E9, 0x0023EC],
55 [0x0025FD, 0x0025FE],
56 [0x002614, 0x002615],
57 [0x002648, 0x002653],
58 [0x0026AA, 0x0026AB],
59 [0x0026BD, 0x0026BE],
60 [0x0026C4, 0x0026C5],
61 [0x0026F2, 0x0026F3],
62 [0x00270A, 0x00270B],
63 [0x002753, 0x002755],
64 [0x002795, 0x002797],
65 [0x002B1B, 0x002B1C],
66 [0x01F191, 0x01F19A],
67 [0x01F1E6, 0x01F1FF],
68 [0x01F232, 0x01F236],
69 [0x01F238, 0x01F23A],
70 [0x01F250, 0x01F251],
71 [0x01F300, 0x01F320],
72 [0x01F32D, 0x01F335],
73 [0x01F337, 0x01F37C],
74 [0x01F37E, 0x01F393],
75 [0x01F3A0, 0x01F3CA],
76 [0x01F3CF, 0x01F3D3],
77 [0x01F3E0, 0x01F3F0],
78 [0x01F3F8, 0x01F43E],
79 [0x01F442, 0x01F4FC],
80 [0x01F4FF, 0x01F53D],
81 [0x01F54B, 0x01F54E],
82 [0x01F550, 0x01F567],
83 [0x01F595, 0x01F596],
84 [0x01F5FB, 0x01F64F],
85 [0x01F680, 0x01F6C5],
86 [0x01F6D0, 0x01F6D2],
87 [0x01F6EB, 0x01F6EC],
88 [0x01F6F4, 0x01F6F8],
89 [0x01F910, 0x01F93A],
90 [0x01F93C, 0x01F93E],
91 [0x01F940, 0x01F945],
92 [0x01F947, 0x01F94C],
93 [0x01F950, 0x01F96B],
94 [0x01F980, 0x01F997],
95 [0x01F9D0, 0x01F9E6]
96 ]
97 });
98 testPropertyEscapes(
99 /^\p{Emoji_Presentation}+$/u,
100 matchSymbols,
101 "\\p{Emoji_Presentation}"
102 );
103
104 const nonMatchSymbols = buildString({
105 loneCodePoints: [
106 0x0026F4,
107 0x00274D,
108 0x002756,
109 0x01F200,
110 0x01F237,
111 0x01F336,
112 0x01F37D,
113 0x01F43F,
114 0x01F441,
115 0x01F54F,
116 0x01F93B,
117 0x01F93F,
118 0x01F946
119 ],
120 ranges: [
121 [0x00DC00, 0x00DFFF],
122 [0x000000, 0x002319],
123 [0x00231C, 0x0023E8],
124 [0x0023ED, 0x0023EF],
125 [0x0023F1, 0x0023F2],
126 [0x0023F4, 0x0025FC],
127 [0x0025FF, 0x002613],
128 [0x002616, 0x002647],
129 [0x002654, 0x00267E],
130 [0x002680, 0x002692],
131 [0x002694, 0x0026A0],
132 [0x0026A2, 0x0026A9],
133 [0x0026AC, 0x0026BC],
134 [0x0026BF, 0x0026C3],
135 [0x0026C6, 0x0026CD],
136 [0x0026CF, 0x0026D3],
137 [0x0026D5, 0x0026E9],
138 [0x0026EB, 0x0026F1],
139 [0x0026F6, 0x0026F9],
140 [0x0026FB, 0x0026FC],
141 [0x0026FE, 0x002704],
142 [0x002706, 0x002709],
143 [0x00270C, 0x002727],
144 [0x002729, 0x00274B],
145 [0x00274F, 0x002752],
146 [0x002758, 0x002794],
147 [0x002798, 0x0027AF],
148 [0x0027B1, 0x0027BE],
149 [0x0027C0, 0x002B1A],
150 [0x002B1D, 0x002B4F],
151 [0x002B51, 0x002B54],
152 [0x002B56, 0x00DBFF],
153 [0x00E000, 0x01F003],
154 [0x01F005, 0x01F0CE],
155 [0x01F0D0, 0x01F18D],
156 [0x01F18F, 0x01F190],
157 [0x01F19B, 0x01F1E5],
158 [0x01F202, 0x01F219],
159 [0x01F21B, 0x01F22E],
160 [0x01F230, 0x01F231],
161 [0x01F23B, 0x01F24F],
162 [0x01F252, 0x01F2FF],
163 [0x01F321, 0x01F32C],
164 [0x01F394, 0x01F39F],
165 [0x01F3CB, 0x01F3CE],
166 [0x01F3D4, 0x01F3DF],
167 [0x01F3F1, 0x01F3F3],
168 [0x01F3F5, 0x01F3F7],
169 [0x01F4FD, 0x01F4FE],
170 [0x01F53E, 0x01F54A],
171 [0x01F568, 0x01F579],
172 [0x01F57B, 0x01F594],
173 [0x01F597, 0x01F5A3],
174 [0x01F5A5, 0x01F5FA],
175 [0x01F650, 0x01F67F],
176 [0x01F6C6, 0x01F6CB],
177 [0x01F6CD, 0x01F6CF],
178 [0x01F6D3, 0x01F6EA],
179 [0x01F6ED, 0x01F6F3],
180 [0x01F6F9, 0x01F90F],
181 [0x01F94D, 0x01F94F],
182 [0x01F96C, 0x01F97F],
183 [0x01F998, 0x01F9BF],
184 [0x01F9C1, 0x01F9CF],
185 [0x01F9E7, 0x10FFFF]
186 ]
187 });
188 testPropertyEscapes(
189 /^\P{Emoji_Presentation}+$/u,
190 nonMatchSymbols,
191 "\\P{Emoji_Presentation}"
192 );