Script_-_Vithkuqi.js (1743B)
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=Vithkuqi` 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 [0x010570, 0x01057A], 20 [0x01057C, 0x01058A], 21 [0x01058C, 0x010592], 22 [0x010594, 0x010595], 23 [0x010597, 0x0105A1], 24 [0x0105A3, 0x0105B1], 25 [0x0105B3, 0x0105B9], 26 [0x0105BB, 0x0105BC] 27 ] 28 }); 29 testPropertyEscapes( 30 /^\p{Script=Vithkuqi}+$/u, 31 matchSymbols, 32 "\\p{Script=Vithkuqi}" 33 ); 34 testPropertyEscapes( 35 /^\p{Script=Vith}+$/u, 36 matchSymbols, 37 "\\p{Script=Vith}" 38 ); 39 testPropertyEscapes( 40 /^\p{sc=Vithkuqi}+$/u, 41 matchSymbols, 42 "\\p{sc=Vithkuqi}" 43 ); 44 testPropertyEscapes( 45 /^\p{sc=Vith}+$/u, 46 matchSymbols, 47 "\\p{sc=Vith}" 48 ); 49 50 const nonMatchSymbols = buildString({ 51 loneCodePoints: [ 52 0x01057B, 53 0x01058B, 54 0x010593, 55 0x010596, 56 0x0105A2, 57 0x0105B2, 58 0x0105BA 59 ], 60 ranges: [ 61 [0x00DC00, 0x00DFFF], 62 [0x000000, 0x00DBFF], 63 [0x00E000, 0x01056F], 64 [0x0105BD, 0x10FFFF] 65 ] 66 }); 67 testPropertyEscapes( 68 /^\P{Script=Vithkuqi}+$/u, 69 nonMatchSymbols, 70 "\\P{Script=Vithkuqi}" 71 ); 72 testPropertyEscapes( 73 /^\P{Script=Vith}+$/u, 74 nonMatchSymbols, 75 "\\P{Script=Vith}" 76 ); 77 testPropertyEscapes( 78 /^\P{sc=Vithkuqi}+$/u, 79 nonMatchSymbols, 80 "\\P{sc=Vithkuqi}" 81 ); 82 testPropertyEscapes( 83 /^\P{sc=Vith}+$/u, 84 nonMatchSymbols, 85 "\\P{sc=Vith}" 86 ); 87 88 reportCompare(0, 0);