Script_-_Oriya.js (2052B)
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=Oriya` 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 [0x000B01, 0x000B03], 20 [0x000B05, 0x000B0C], 21 [0x000B0F, 0x000B10], 22 [0x000B13, 0x000B28], 23 [0x000B2A, 0x000B30], 24 [0x000B32, 0x000B33], 25 [0x000B35, 0x000B39], 26 [0x000B3C, 0x000B44], 27 [0x000B47, 0x000B48], 28 [0x000B4B, 0x000B4D], 29 [0x000B55, 0x000B57], 30 [0x000B5C, 0x000B5D], 31 [0x000B5F, 0x000B63], 32 [0x000B66, 0x000B77] 33 ] 34 }); 35 testPropertyEscapes( 36 /^\p{Script=Oriya}+$/u, 37 matchSymbols, 38 "\\p{Script=Oriya}" 39 ); 40 testPropertyEscapes( 41 /^\p{Script=Orya}+$/u, 42 matchSymbols, 43 "\\p{Script=Orya}" 44 ); 45 testPropertyEscapes( 46 /^\p{sc=Oriya}+$/u, 47 matchSymbols, 48 "\\p{sc=Oriya}" 49 ); 50 testPropertyEscapes( 51 /^\p{sc=Orya}+$/u, 52 matchSymbols, 53 "\\p{sc=Orya}" 54 ); 55 56 const nonMatchSymbols = buildString({ 57 loneCodePoints: [ 58 0x000B04, 59 0x000B29, 60 0x000B31, 61 0x000B34, 62 0x000B5E 63 ], 64 ranges: [ 65 [0x00DC00, 0x00DFFF], 66 [0x000000, 0x000B00], 67 [0x000B0D, 0x000B0E], 68 [0x000B11, 0x000B12], 69 [0x000B3A, 0x000B3B], 70 [0x000B45, 0x000B46], 71 [0x000B49, 0x000B4A], 72 [0x000B4E, 0x000B54], 73 [0x000B58, 0x000B5B], 74 [0x000B64, 0x000B65], 75 [0x000B78, 0x00DBFF], 76 [0x00E000, 0x10FFFF] 77 ] 78 }); 79 testPropertyEscapes( 80 /^\P{Script=Oriya}+$/u, 81 nonMatchSymbols, 82 "\\P{Script=Oriya}" 83 ); 84 testPropertyEscapes( 85 /^\P{Script=Orya}+$/u, 86 nonMatchSymbols, 87 "\\P{Script=Orya}" 88 ); 89 testPropertyEscapes( 90 /^\P{sc=Oriya}+$/u, 91 nonMatchSymbols, 92 "\\P{sc=Oriya}" 93 ); 94 testPropertyEscapes( 95 /^\P{sc=Orya}+$/u, 96 nonMatchSymbols, 97 "\\P{sc=Orya}" 98 ); 99 100 reportCompare(0, 0);