Script_-_Gujarati.js (2033B)
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=Gujarati` 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 0x000AD0 19 ], 20 ranges: [ 21 [0x000A81, 0x000A83], 22 [0x000A85, 0x000A8D], 23 [0x000A8F, 0x000A91], 24 [0x000A93, 0x000AA8], 25 [0x000AAA, 0x000AB0], 26 [0x000AB2, 0x000AB3], 27 [0x000AB5, 0x000AB9], 28 [0x000ABC, 0x000AC5], 29 [0x000AC7, 0x000AC9], 30 [0x000ACB, 0x000ACD], 31 [0x000AE0, 0x000AE3], 32 [0x000AE6, 0x000AF1], 33 [0x000AF9, 0x000AFF] 34 ] 35 }); 36 testPropertyEscapes( 37 /^\p{Script=Gujarati}+$/u, 38 matchSymbols, 39 "\\p{Script=Gujarati}" 40 ); 41 testPropertyEscapes( 42 /^\p{Script=Gujr}+$/u, 43 matchSymbols, 44 "\\p{Script=Gujr}" 45 ); 46 testPropertyEscapes( 47 /^\p{sc=Gujarati}+$/u, 48 matchSymbols, 49 "\\p{sc=Gujarati}" 50 ); 51 testPropertyEscapes( 52 /^\p{sc=Gujr}+$/u, 53 matchSymbols, 54 "\\p{sc=Gujr}" 55 ); 56 57 const nonMatchSymbols = buildString({ 58 loneCodePoints: [ 59 0x000A84, 60 0x000A8E, 61 0x000A92, 62 0x000AA9, 63 0x000AB1, 64 0x000AB4, 65 0x000AC6, 66 0x000ACA 67 ], 68 ranges: [ 69 [0x00DC00, 0x00DFFF], 70 [0x000000, 0x000A80], 71 [0x000ABA, 0x000ABB], 72 [0x000ACE, 0x000ACF], 73 [0x000AD1, 0x000ADF], 74 [0x000AE4, 0x000AE5], 75 [0x000AF2, 0x000AF8], 76 [0x000B00, 0x00DBFF], 77 [0x00E000, 0x10FFFF] 78 ] 79 }); 80 testPropertyEscapes( 81 /^\P{Script=Gujarati}+$/u, 82 nonMatchSymbols, 83 "\\P{Script=Gujarati}" 84 ); 85 testPropertyEscapes( 86 /^\P{Script=Gujr}+$/u, 87 nonMatchSymbols, 88 "\\P{Script=Gujr}" 89 ); 90 testPropertyEscapes( 91 /^\P{sc=Gujarati}+$/u, 92 nonMatchSymbols, 93 "\\P{sc=Gujarati}" 94 ); 95 testPropertyEscapes( 96 /^\P{sc=Gujr}+$/u, 97 nonMatchSymbols, 98 "\\P{sc=Gujr}" 99 ); 100 101 reportCompare(0, 0);