Script_-_Chakma.js (1485B)
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=Chakma` 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 [0x011100, 0x011134], 20 [0x011136, 0x011147] 21 ] 22 }); 23 testPropertyEscapes( 24 /^\p{Script=Chakma}+$/u, 25 matchSymbols, 26 "\\p{Script=Chakma}" 27 ); 28 testPropertyEscapes( 29 /^\p{Script=Cakm}+$/u, 30 matchSymbols, 31 "\\p{Script=Cakm}" 32 ); 33 testPropertyEscapes( 34 /^\p{sc=Chakma}+$/u, 35 matchSymbols, 36 "\\p{sc=Chakma}" 37 ); 38 testPropertyEscapes( 39 /^\p{sc=Cakm}+$/u, 40 matchSymbols, 41 "\\p{sc=Cakm}" 42 ); 43 44 const nonMatchSymbols = buildString({ 45 loneCodePoints: [ 46 0x011135 47 ], 48 ranges: [ 49 [0x00DC00, 0x00DFFF], 50 [0x000000, 0x00DBFF], 51 [0x00E000, 0x0110FF], 52 [0x011148, 0x10FFFF] 53 ] 54 }); 55 testPropertyEscapes( 56 /^\P{Script=Chakma}+$/u, 57 nonMatchSymbols, 58 "\\P{Script=Chakma}" 59 ); 60 testPropertyEscapes( 61 /^\P{Script=Cakm}+$/u, 62 nonMatchSymbols, 63 "\\P{Script=Cakm}" 64 ); 65 testPropertyEscapes( 66 /^\P{sc=Chakma}+$/u, 67 nonMatchSymbols, 68 "\\P{sc=Chakma}" 69 ); 70 testPropertyEscapes( 71 /^\P{sc=Cakm}+$/u, 72 nonMatchSymbols, 73 "\\P{sc=Cakm}" 74 ); 75 76 reportCompare(0, 0);