tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Script_-_Kawi.js (1519B)


      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=Kawi`
      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    [0x011F00, 0x011F10],
     20    [0x011F12, 0x011F3A],
     21    [0x011F3E, 0x011F5A]
     22  ]
     23 });
     24 testPropertyEscapes(
     25  /^\p{Script=Kawi}+$/u,
     26  matchSymbols,
     27  "\\p{Script=Kawi}"
     28 );
     29 testPropertyEscapes(
     30  /^\p{Script=Kawi}+$/u,
     31  matchSymbols,
     32  "\\p{Script=Kawi}"
     33 );
     34 testPropertyEscapes(
     35  /^\p{sc=Kawi}+$/u,
     36  matchSymbols,
     37  "\\p{sc=Kawi}"
     38 );
     39 testPropertyEscapes(
     40  /^\p{sc=Kawi}+$/u,
     41  matchSymbols,
     42  "\\p{sc=Kawi}"
     43 );
     44 
     45 const nonMatchSymbols = buildString({
     46  loneCodePoints: [
     47    0x011F11
     48  ],
     49  ranges: [
     50    [0x00DC00, 0x00DFFF],
     51    [0x000000, 0x00DBFF],
     52    [0x00E000, 0x011EFF],
     53    [0x011F3B, 0x011F3D],
     54    [0x011F5B, 0x10FFFF]
     55  ]
     56 });
     57 testPropertyEscapes(
     58  /^\P{Script=Kawi}+$/u,
     59  nonMatchSymbols,
     60  "\\P{Script=Kawi}"
     61 );
     62 testPropertyEscapes(
     63  /^\P{Script=Kawi}+$/u,
     64  nonMatchSymbols,
     65  "\\P{Script=Kawi}"
     66 );
     67 testPropertyEscapes(
     68  /^\P{sc=Kawi}+$/u,
     69  nonMatchSymbols,
     70  "\\P{sc=Kawi}"
     71 );
     72 testPropertyEscapes(
     73  /^\P{sc=Kawi}+$/u,
     74  nonMatchSymbols,
     75  "\\P{sc=Kawi}"
     76 );
     77 
     78 reportCompare(0, 0);