Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/property-escapes/generated/Unified_Ideograph.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 `Unified_Ideograph`
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 0x00FA11,
20 0x00FA1F,
21 0x00FA21
22 ],
23 ranges: [
24 [0x003400, 0x004DB5],
25 [0x004E00, 0x009FEA],
26 [0x00FA0E, 0x00FA0F],
27 [0x00FA13, 0x00FA14],
28 [0x00FA23, 0x00FA24],
29 [0x00FA27, 0x00FA29],
30 [0x020000, 0x02A6D6],
31 [0x02A700, 0x02B734],
32 [0x02B740, 0x02B81D],
33 [0x02B820, 0x02CEA1],
34 [0x02CEB0, 0x02EBE0]
35 ]
36 });
37 testPropertyEscapes(
38 /^\p{Unified_Ideograph}+$/u,
39 matchSymbols,
40 "\\p{Unified_Ideograph}"
41 );
42 testPropertyEscapes(
43 /^\p{UIdeo}+$/u,
44 matchSymbols,
45 "\\p{UIdeo}"
46 );
47
48 const nonMatchSymbols = buildString({
49 loneCodePoints: [
50 0x00FA10,
51 0x00FA12,
52 0x00FA20,
53 0x00FA22
54 ],
55 ranges: [
56 [0x00DC00, 0x00DFFF],
57 [0x000000, 0x0033FF],
58 [0x004DB6, 0x004DFF],
59 [0x009FEB, 0x00DBFF],
60 [0x00E000, 0x00FA0D],
61 [0x00FA15, 0x00FA1E],
62 [0x00FA25, 0x00FA26],
63 [0x00FA2A, 0x01FFFF],
64 [0x02A6D7, 0x02A6FF],
65 [0x02B735, 0x02B73F],
66 [0x02B81E, 0x02B81F],
67 [0x02CEA2, 0x02CEAF],
68 [0x02EBE1, 0x10FFFF]
69 ]
70 });
71 testPropertyEscapes(
72 /^\P{Unified_Ideograph}+$/u,
73 nonMatchSymbols,
74 "\\P{Unified_Ideograph}"
75 );
76 testPropertyEscapes(
77 /^\P{UIdeo}+$/u,
78 nonMatchSymbols,
79 "\\P{UIdeo}"
80 );