Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/property-escapes/generated/Deprecated.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 `Deprecated`
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 0x000149,
20 0x000673,
21 0x000F77,
22 0x000F79,
23 0x0E0001
24 ],
25 ranges: [
26 [0x0017A3, 0x0017A4],
27 [0x00206A, 0x00206F],
28 [0x002329, 0x00232A]
29 ]
30 });
31 testPropertyEscapes(
32 /^\p{Deprecated}+$/u,
33 matchSymbols,
34 "\\p{Deprecated}"
35 );
36 testPropertyEscapes(
37 /^\p{Dep}+$/u,
38 matchSymbols,
39 "\\p{Dep}"
40 );
41
42 const nonMatchSymbols = buildString({
43 loneCodePoints: [
44 0x000F78
45 ],
46 ranges: [
47 [0x00DC00, 0x00DFFF],
48 [0x000000, 0x000148],
49 [0x00014A, 0x000672],
50 [0x000674, 0x000F76],
51 [0x000F7A, 0x0017A2],
52 [0x0017A5, 0x002069],
53 [0x002070, 0x002328],
54 [0x00232B, 0x00DBFF],
55 [0x00E000, 0x0E0000],
56 [0x0E0002, 0x10FFFF]
57 ]
58 });
59 testPropertyEscapes(
60 /^\P{Deprecated}+$/u,
61 nonMatchSymbols,
62 "\\P{Deprecated}"
63 );
64 testPropertyEscapes(
65 /^\P{Dep}+$/u,
66 nonMatchSymbols,
67 "\\P{Dep}"
68 );