Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/property-escapes/generated/Dash.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 `Dash`
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 0x00002D,
20 0x00058A,
21 0x0005BE,
22 0x001400,
23 0x001806,
24 0x002053,
25 0x00207B,
26 0x00208B,
27 0x002212,
28 0x002E17,
29 0x002E1A,
30 0x002E40,
31 0x00301C,
32 0x003030,
33 0x0030A0,
34 0x00FE58,
35 0x00FE63,
36 0x00FF0D
37 ],
38 ranges: [
39 [0x002010, 0x002015],
40 [0x002E3A, 0x002E3B],
41 [0x00FE31, 0x00FE32]
42 ]
43 });
44 testPropertyEscapes(
45 /^\p{Dash}+$/u,
46 matchSymbols,
47 "\\p{Dash}"
48 );
49
50 const nonMatchSymbols = buildString({
51 loneCodePoints: [],
52 ranges: [
53 [0x00DC00, 0x00DFFF],
54 [0x000000, 0x00002C],
55 [0x00002E, 0x000589],
56 [0x00058B, 0x0005BD],
57 [0x0005BF, 0x0013FF],
58 [0x001401, 0x001805],
59 [0x001807, 0x00200F],
60 [0x002016, 0x002052],
61 [0x002054, 0x00207A],
62 [0x00207C, 0x00208A],
63 [0x00208C, 0x002211],
64 [0x002213, 0x002E16],
65 [0x002E18, 0x002E19],
66 [0x002E1B, 0x002E39],
67 [0x002E3C, 0x002E3F],
68 [0x002E41, 0x00301B],
69 [0x00301D, 0x00302F],
70 [0x003031, 0x00309F],
71 [0x0030A1, 0x00DBFF],
72 [0x00E000, 0x00FE30],
73 [0x00FE33, 0x00FE57],
74 [0x00FE59, 0x00FE62],
75 [0x00FE64, 0x00FF0C],
76 [0x00FF0E, 0x10FFFF]
77 ]
78 });
79 testPropertyEscapes(
80 /^\P{Dash}+$/u,
81 nonMatchSymbols,
82 "\\P{Dash}"
83 );