tor-browser

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

Script_-_Multani.js (1604B)


      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=Multani`
      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    0x011288
     19  ],
     20  ranges: [
     21    [0x011280, 0x011286],
     22    [0x01128A, 0x01128D],
     23    [0x01128F, 0x01129D],
     24    [0x01129F, 0x0112A9]
     25  ]
     26 });
     27 testPropertyEscapes(
     28  /^\p{Script=Multani}+$/u,
     29  matchSymbols,
     30  "\\p{Script=Multani}"
     31 );
     32 testPropertyEscapes(
     33  /^\p{Script=Mult}+$/u,
     34  matchSymbols,
     35  "\\p{Script=Mult}"
     36 );
     37 testPropertyEscapes(
     38  /^\p{sc=Multani}+$/u,
     39  matchSymbols,
     40  "\\p{sc=Multani}"
     41 );
     42 testPropertyEscapes(
     43  /^\p{sc=Mult}+$/u,
     44  matchSymbols,
     45  "\\p{sc=Mult}"
     46 );
     47 
     48 const nonMatchSymbols = buildString({
     49  loneCodePoints: [
     50    0x011287,
     51    0x011289,
     52    0x01128E,
     53    0x01129E
     54  ],
     55  ranges: [
     56    [0x00DC00, 0x00DFFF],
     57    [0x000000, 0x00DBFF],
     58    [0x00E000, 0x01127F],
     59    [0x0112AA, 0x10FFFF]
     60  ]
     61 });
     62 testPropertyEscapes(
     63  /^\P{Script=Multani}+$/u,
     64  nonMatchSymbols,
     65  "\\P{Script=Multani}"
     66 );
     67 testPropertyEscapes(
     68  /^\P{Script=Mult}+$/u,
     69  nonMatchSymbols,
     70  "\\P{Script=Mult}"
     71 );
     72 testPropertyEscapes(
     73  /^\P{sc=Multani}+$/u,
     74  nonMatchSymbols,
     75  "\\P{sc=Multani}"
     76 );
     77 testPropertyEscapes(
     78  /^\P{sc=Mult}+$/u,
     79  nonMatchSymbols,
     80  "\\P{sc=Mult}"
     81 );
     82 
     83 reportCompare(0, 0);