Script_-_Gurmukhi.js (2125B)
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=Gurmukhi` 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 0x000A3C, 19 0x000A51, 20 0x000A5E 21 ], 22 ranges: [ 23 [0x000A01, 0x000A03], 24 [0x000A05, 0x000A0A], 25 [0x000A0F, 0x000A10], 26 [0x000A13, 0x000A28], 27 [0x000A2A, 0x000A30], 28 [0x000A32, 0x000A33], 29 [0x000A35, 0x000A36], 30 [0x000A38, 0x000A39], 31 [0x000A3E, 0x000A42], 32 [0x000A47, 0x000A48], 33 [0x000A4B, 0x000A4D], 34 [0x000A59, 0x000A5C], 35 [0x000A66, 0x000A76] 36 ] 37 }); 38 testPropertyEscapes( 39 /^\p{Script=Gurmukhi}+$/u, 40 matchSymbols, 41 "\\p{Script=Gurmukhi}" 42 ); 43 testPropertyEscapes( 44 /^\p{Script=Guru}+$/u, 45 matchSymbols, 46 "\\p{Script=Guru}" 47 ); 48 testPropertyEscapes( 49 /^\p{sc=Gurmukhi}+$/u, 50 matchSymbols, 51 "\\p{sc=Gurmukhi}" 52 ); 53 testPropertyEscapes( 54 /^\p{sc=Guru}+$/u, 55 matchSymbols, 56 "\\p{sc=Guru}" 57 ); 58 59 const nonMatchSymbols = buildString({ 60 loneCodePoints: [ 61 0x000A04, 62 0x000A29, 63 0x000A31, 64 0x000A34, 65 0x000A37, 66 0x000A3D, 67 0x000A5D 68 ], 69 ranges: [ 70 [0x00DC00, 0x00DFFF], 71 [0x000000, 0x000A00], 72 [0x000A0B, 0x000A0E], 73 [0x000A11, 0x000A12], 74 [0x000A3A, 0x000A3B], 75 [0x000A43, 0x000A46], 76 [0x000A49, 0x000A4A], 77 [0x000A4E, 0x000A50], 78 [0x000A52, 0x000A58], 79 [0x000A5F, 0x000A65], 80 [0x000A77, 0x00DBFF], 81 [0x00E000, 0x10FFFF] 82 ] 83 }); 84 testPropertyEscapes( 85 /^\P{Script=Gurmukhi}+$/u, 86 nonMatchSymbols, 87 "\\P{Script=Gurmukhi}" 88 ); 89 testPropertyEscapes( 90 /^\P{Script=Guru}+$/u, 91 nonMatchSymbols, 92 "\\P{Script=Guru}" 93 ); 94 testPropertyEscapes( 95 /^\P{sc=Gurmukhi}+$/u, 96 nonMatchSymbols, 97 "\\P{sc=Gurmukhi}" 98 ); 99 testPropertyEscapes( 100 /^\P{sc=Guru}+$/u, 101 nonMatchSymbols, 102 "\\P{sc=Guru}" 103 ); 104 105 reportCompare(0, 0);