Script_-_Coptic.js (1881B)
1 // Copyright 2025 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=Coptic` 8 info: | 9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests 10 Unicode v17.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 ranges: [ 19 [0x0003E2, 0x0003EF], 20 [0x002C80, 0x002CF3], 21 [0x002CF9, 0x002CFF] 22 ] 23 }); 24 testPropertyEscapes( 25 /^\p{Script=Coptic}+$/u, 26 matchSymbols, 27 "\\p{Script=Coptic}" 28 ); 29 testPropertyEscapes( 30 /^\p{Script=Copt}+$/u, 31 matchSymbols, 32 "\\p{Script=Copt}" 33 ); 34 testPropertyEscapes( 35 /^\p{Script=Qaac}+$/u, 36 matchSymbols, 37 "\\p{Script=Qaac}" 38 ); 39 testPropertyEscapes( 40 /^\p{sc=Coptic}+$/u, 41 matchSymbols, 42 "\\p{sc=Coptic}" 43 ); 44 testPropertyEscapes( 45 /^\p{sc=Copt}+$/u, 46 matchSymbols, 47 "\\p{sc=Copt}" 48 ); 49 testPropertyEscapes( 50 /^\p{sc=Qaac}+$/u, 51 matchSymbols, 52 "\\p{sc=Qaac}" 53 ); 54 55 const nonMatchSymbols = buildString({ 56 loneCodePoints: [], 57 ranges: [ 58 [0x00DC00, 0x00DFFF], 59 [0x000000, 0x0003E1], 60 [0x0003F0, 0x002C7F], 61 [0x002CF4, 0x002CF8], 62 [0x002D00, 0x00DBFF], 63 [0x00E000, 0x10FFFF] 64 ] 65 }); 66 testPropertyEscapes( 67 /^\P{Script=Coptic}+$/u, 68 nonMatchSymbols, 69 "\\P{Script=Coptic}" 70 ); 71 testPropertyEscapes( 72 /^\P{Script=Copt}+$/u, 73 nonMatchSymbols, 74 "\\P{Script=Copt}" 75 ); 76 testPropertyEscapes( 77 /^\P{Script=Qaac}+$/u, 78 nonMatchSymbols, 79 "\\P{Script=Qaac}" 80 ); 81 testPropertyEscapes( 82 /^\P{sc=Coptic}+$/u, 83 nonMatchSymbols, 84 "\\P{sc=Coptic}" 85 ); 86 testPropertyEscapes( 87 /^\P{sc=Copt}+$/u, 88 nonMatchSymbols, 89 "\\P{sc=Copt}" 90 ); 91 testPropertyEscapes( 92 /^\P{sc=Qaac}+$/u, 93 nonMatchSymbols, 94 "\\P{sc=Qaac}" 95 ); 96 97 reportCompare(0, 0);