Bidi_Control.js (1238B)
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 `Bidi_Control` 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 0x00061C 19 ], 20 ranges: [ 21 [0x00200E, 0x00200F], 22 [0x00202A, 0x00202E], 23 [0x002066, 0x002069] 24 ] 25 }); 26 testPropertyEscapes( 27 /^\p{Bidi_Control}+$/u, 28 matchSymbols, 29 "\\p{Bidi_Control}" 30 ); 31 testPropertyEscapes( 32 /^\p{Bidi_C}+$/u, 33 matchSymbols, 34 "\\p{Bidi_C}" 35 ); 36 37 const nonMatchSymbols = buildString({ 38 loneCodePoints: [], 39 ranges: [ 40 [0x00DC00, 0x00DFFF], 41 [0x000000, 0x00061B], 42 [0x00061D, 0x00200D], 43 [0x002010, 0x002029], 44 [0x00202F, 0x002065], 45 [0x00206A, 0x00DBFF], 46 [0x00E000, 0x10FFFF] 47 ] 48 }); 49 testPropertyEscapes( 50 /^\P{Bidi_Control}+$/u, 51 nonMatchSymbols, 52 "\\P{Bidi_Control}" 53 ); 54 testPropertyEscapes( 55 /^\P{Bidi_C}+$/u, 56 nonMatchSymbols, 57 "\\P{Bidi_C}" 58 ); 59 60 reportCompare(0, 0);