Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Arabic.js

raw
1 // Copyright 2024 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 `Script=Arabic`
8 info: |
9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10 Unicode v16.0.0
11 esid: sec-static-semantics-unicodematchproperty-p
12 features: [regexp-unicode-property-escapes]
13 includes: [regExpUtils.js]
14 ---*/
15
16 const matchSymbols = buildString({
17 loneCodePoints: [
18 0x00FDCF,
19 0x01EE24,
20 0x01EE27,
21 0x01EE39,
22 0x01EE3B,
23 0x01EE42,
24 0x01EE47,
25 0x01EE49,
26 0x01EE4B,
27 0x01EE54,
28 0x01EE57,
29 0x01EE59,
30 0x01EE5B,
31 0x01EE5D,
32 0x01EE5F,
33 0x01EE64,
34 0x01EE7E
35 ],
36 ranges: [
37 [0x000600, 0x000604],
38 [0x000606, 0x00060B],
39 [0x00060D, 0x00061A],
40 [0x00061C, 0x00061E],
41 [0x000620, 0x00063F],
42 [0x000641, 0x00064A],
43 [0x000656, 0x00066F],
44 [0x000671, 0x0006DC],
45 [0x0006DE, 0x0006FF],
46 [0x000750, 0x00077F],
47 [0x000870, 0x00088E],
48 [0x000890, 0x000891],
49 [0x000897, 0x0008E1],
50 [0x0008E3, 0x0008FF],
51 [0x00FB50, 0x00FBC2],
52 [0x00FBD3, 0x00FD3D],
53 [0x00FD40, 0x00FD8F],
54 [0x00FD92, 0x00FDC7],
55 [0x00FDF0, 0x00FDFF],
56 [0x00FE70, 0x00FE74],
57 [0x00FE76, 0x00FEFC],
58 [0x010E60, 0x010E7E],
59 [0x010EC2, 0x010EC4],
60 [0x010EFC, 0x010EFF],
61 [0x01EE00, 0x01EE03],
62 [0x01EE05, 0x01EE1F],
63 [0x01EE21, 0x01EE22],
64 [0x01EE29, 0x01EE32],
65 [0x01EE34, 0x01EE37],
66 [0x01EE4D, 0x01EE4F],
67 [0x01EE51, 0x01EE52],
68 [0x01EE61, 0x01EE62],
69 [0x01EE67, 0x01EE6A],
70 [0x01EE6C, 0x01EE72],
71 [0x01EE74, 0x01EE77],
72 [0x01EE79, 0x01EE7C],
73 [0x01EE80, 0x01EE89],
74 [0x01EE8B, 0x01EE9B],
75 [0x01EEA1, 0x01EEA3],
76 [0x01EEA5, 0x01EEA9],
77 [0x01EEAB, 0x01EEBB],
78 [0x01EEF0, 0x01EEF1]
79 ]
80 });
81 testPropertyEscapes(
82 /^\p{Script=Arabic}+$/u,
83 matchSymbols,
84 "\\p{Script=Arabic}"
85 );
86 testPropertyEscapes(
87 /^\p{Script=Arab}+$/u,
88 matchSymbols,
89 "\\p{Script=Arab}"
90 );
91 testPropertyEscapes(
92 /^\p{sc=Arabic}+$/u,
93 matchSymbols,
94 "\\p{sc=Arabic}"
95 );
96 testPropertyEscapes(
97 /^\p{sc=Arab}+$/u,
98 matchSymbols,
99 "\\p{sc=Arab}"
100 );
101
102 const nonMatchSymbols = buildString({
103 loneCodePoints: [
104 0x000605,
105 0x00060C,
106 0x00061B,
107 0x00061F,
108 0x000640,
109 0x000670,
110 0x0006DD,
111 0x00088F,
112 0x0008E2,
113 0x00FE75,
114 0x01EE04,
115 0x01EE20,
116 0x01EE23,
117 0x01EE28,
118 0x01EE33,
119 0x01EE38,
120 0x01EE3A,
121 0x01EE48,
122 0x01EE4A,
123 0x01EE4C,
124 0x01EE50,
125 0x01EE53,
126 0x01EE58,
127 0x01EE5A,
128 0x01EE5C,
129 0x01EE5E,
130 0x01EE60,
131 0x01EE63,
132 0x01EE6B,
133 0x01EE73,
134 0x01EE78,
135 0x01EE7D,
136 0x01EE7F,
137 0x01EE8A,
138 0x01EEA4,
139 0x01EEAA
140 ],
141 ranges: [
142 [0x00DC00, 0x00DFFF],
143 [0x000000, 0x0005FF],
144 [0x00064B, 0x000655],
145 [0x000700, 0x00074F],
146 [0x000780, 0x00086F],
147 [0x000892, 0x000896],
148 [0x000900, 0x00DBFF],
149 [0x00E000, 0x00FB4F],
150 [0x00FBC3, 0x00FBD2],
151 [0x00FD3E, 0x00FD3F],
152 [0x00FD90, 0x00FD91],
153 [0x00FDC8, 0x00FDCE],
154 [0x00FDD0, 0x00FDEF],
155 [0x00FE00, 0x00FE6F],
156 [0x00FEFD, 0x010E5F],
157 [0x010E7F, 0x010EC1],
158 [0x010EC5, 0x010EFB],
159 [0x010F00, 0x01EDFF],
160 [0x01EE25, 0x01EE26],
161 [0x01EE3C, 0x01EE41],
162 [0x01EE43, 0x01EE46],
163 [0x01EE55, 0x01EE56],
164 [0x01EE65, 0x01EE66],
165 [0x01EE9C, 0x01EEA0],
166 [0x01EEBC, 0x01EEEF],
167 [0x01EEF2, 0x10FFFF]
168 ]
169 });
170 testPropertyEscapes(
171 /^\P{Script=Arabic}+$/u,
172 nonMatchSymbols,
173 "\\P{Script=Arabic}"
174 );
175 testPropertyEscapes(
176 /^\P{Script=Arab}+$/u,
177 nonMatchSymbols,
178 "\\P{Script=Arab}"
179 );
180 testPropertyEscapes(
181 /^\P{sc=Arabic}+$/u,
182 nonMatchSymbols,
183 "\\P{sc=Arabic}"
184 );
185 testPropertyEscapes(
186 /^\P{sc=Arab}+$/u,
187 nonMatchSymbols,
188 "\\P{sc=Arab}"
189 );
190
191 reportCompare(0, 0);