Script_-_Lao.js (1808B)
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=Lao` 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 0x000E84, 19 0x000EA5, 20 0x000EC6 21 ], 22 ranges: [ 23 [0x000E81, 0x000E82], 24 [0x000E86, 0x000E8A], 25 [0x000E8C, 0x000EA3], 26 [0x000EA7, 0x000EBD], 27 [0x000EC0, 0x000EC4], 28 [0x000EC8, 0x000ECE], 29 [0x000ED0, 0x000ED9], 30 [0x000EDC, 0x000EDF] 31 ] 32 }); 33 testPropertyEscapes( 34 /^\p{Script=Lao}+$/u, 35 matchSymbols, 36 "\\p{Script=Lao}" 37 ); 38 testPropertyEscapes( 39 /^\p{Script=Laoo}+$/u, 40 matchSymbols, 41 "\\p{Script=Laoo}" 42 ); 43 testPropertyEscapes( 44 /^\p{sc=Lao}+$/u, 45 matchSymbols, 46 "\\p{sc=Lao}" 47 ); 48 testPropertyEscapes( 49 /^\p{sc=Laoo}+$/u, 50 matchSymbols, 51 "\\p{sc=Laoo}" 52 ); 53 54 const nonMatchSymbols = buildString({ 55 loneCodePoints: [ 56 0x000E83, 57 0x000E85, 58 0x000E8B, 59 0x000EA4, 60 0x000EA6, 61 0x000EC5, 62 0x000EC7, 63 0x000ECF 64 ], 65 ranges: [ 66 [0x00DC00, 0x00DFFF], 67 [0x000000, 0x000E80], 68 [0x000EBE, 0x000EBF], 69 [0x000EDA, 0x000EDB], 70 [0x000EE0, 0x00DBFF], 71 [0x00E000, 0x10FFFF] 72 ] 73 }); 74 testPropertyEscapes( 75 /^\P{Script=Lao}+$/u, 76 nonMatchSymbols, 77 "\\P{Script=Lao}" 78 ); 79 testPropertyEscapes( 80 /^\P{Script=Laoo}+$/u, 81 nonMatchSymbols, 82 "\\P{Script=Laoo}" 83 ); 84 testPropertyEscapes( 85 /^\P{sc=Lao}+$/u, 86 nonMatchSymbols, 87 "\\P{sc=Lao}" 88 ); 89 testPropertyEscapes( 90 /^\P{sc=Laoo}+$/u, 91 nonMatchSymbols, 92 "\\P{sc=Laoo}" 93 ); 94 95 reportCompare(0, 0);