Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/property-escapes/generated/Extender.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 `Extender`
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 0x0000B7,
20 0x000640,
21 0x0007FA,
22 0x000E46,
23 0x000EC6,
24 0x00180A,
25 0x001843,
26 0x001AA7,
27 0x001C36,
28 0x001C7B,
29 0x003005,
30 0x00A015,
31 0x00A60C,
32 0x00A9CF,
33 0x00A9E6,
34 0x00AA70,
35 0x00AADD,
36 0x00FF70,
37 0x01135D,
38 0x011A98
39 ],
40 ranges: [
41 [0x0002D0, 0x0002D1],
42 [0x003031, 0x003035],
43 [0x00309D, 0x00309E],
44 [0x0030FC, 0x0030FE],
45 [0x00AAF3, 0x00AAF4],
46 [0x0115C6, 0x0115C8],
47 [0x016B42, 0x016B43],
48 [0x016FE0, 0x016FE1],
49 [0x01E944, 0x01E946]
50 ]
51 });
52 testPropertyEscapes(
53 /^\p{Extender}+$/u,
54 matchSymbols,
55 "\\p{Extender}"
56 );
57 testPropertyEscapes(
58 /^\p{Ext}+$/u,
59 matchSymbols,
60 "\\p{Ext}"
61 );
62
63 const nonMatchSymbols = buildString({
64 loneCodePoints: [],
65 ranges: [
66 [0x00DC00, 0x00DFFF],
67 [0x000000, 0x0000B6],
68 [0x0000B8, 0x0002CF],
69 [0x0002D2, 0x00063F],
70 [0x000641, 0x0007F9],
71 [0x0007FB, 0x000E45],
72 [0x000E47, 0x000EC5],
73 [0x000EC7, 0x001809],
74 [0x00180B, 0x001842],
75 [0x001844, 0x001AA6],
76 [0x001AA8, 0x001C35],
77 [0x001C37, 0x001C7A],
78 [0x001C7C, 0x003004],
79 [0x003006, 0x003030],
80 [0x003036, 0x00309C],
81 [0x00309F, 0x0030FB],
82 [0x0030FF, 0x00A014],
83 [0x00A016, 0x00A60B],
84 [0x00A60D, 0x00A9CE],
85 [0x00A9D0, 0x00A9E5],
86 [0x00A9E7, 0x00AA6F],
87 [0x00AA71, 0x00AADC],
88 [0x00AADE, 0x00AAF2],
89 [0x00AAF5, 0x00DBFF],
90 [0x00E000, 0x00FF6F],
91 [0x00FF71, 0x01135C],
92 [0x01135E, 0x0115C5],
93 [0x0115C9, 0x011A97],
94 [0x011A99, 0x016B41],
95 [0x016B44, 0x016FDF],
96 [0x016FE2, 0x01E943],
97 [0x01E947, 0x10FFFF]
98 ]
99 });
100 testPropertyEscapes(
101 /^\P{Extender}+$/u,
102 nonMatchSymbols,
103 "\\P{Extender}"
104 );
105 testPropertyEscapes(
106 /^\P{Ext}+$/u,
107 nonMatchSymbols,
108 "\\P{Ext}"
109 );