tor-browser

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

Script_-_Telugu.js (1985B)


      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=Telugu`
      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    [0x000C00, 0x000C0C],
     20    [0x000C0E, 0x000C10],
     21    [0x000C12, 0x000C28],
     22    [0x000C2A, 0x000C39],
     23    [0x000C3C, 0x000C44],
     24    [0x000C46, 0x000C48],
     25    [0x000C4A, 0x000C4D],
     26    [0x000C55, 0x000C56],
     27    [0x000C58, 0x000C5A],
     28    [0x000C5C, 0x000C5D],
     29    [0x000C60, 0x000C63],
     30    [0x000C66, 0x000C6F],
     31    [0x000C77, 0x000C7F]
     32  ]
     33 });
     34 testPropertyEscapes(
     35  /^\p{Script=Telugu}+$/u,
     36  matchSymbols,
     37  "\\p{Script=Telugu}"
     38 );
     39 testPropertyEscapes(
     40  /^\p{Script=Telu}+$/u,
     41  matchSymbols,
     42  "\\p{Script=Telu}"
     43 );
     44 testPropertyEscapes(
     45  /^\p{sc=Telugu}+$/u,
     46  matchSymbols,
     47  "\\p{sc=Telugu}"
     48 );
     49 testPropertyEscapes(
     50  /^\p{sc=Telu}+$/u,
     51  matchSymbols,
     52  "\\p{sc=Telu}"
     53 );
     54 
     55 const nonMatchSymbols = buildString({
     56  loneCodePoints: [
     57    0x000C0D,
     58    0x000C11,
     59    0x000C29,
     60    0x000C45,
     61    0x000C49,
     62    0x000C57,
     63    0x000C5B
     64  ],
     65  ranges: [
     66    [0x00DC00, 0x00DFFF],
     67    [0x000000, 0x000BFF],
     68    [0x000C3A, 0x000C3B],
     69    [0x000C4E, 0x000C54],
     70    [0x000C5E, 0x000C5F],
     71    [0x000C64, 0x000C65],
     72    [0x000C70, 0x000C76],
     73    [0x000C80, 0x00DBFF],
     74    [0x00E000, 0x10FFFF]
     75  ]
     76 });
     77 testPropertyEscapes(
     78  /^\P{Script=Telugu}+$/u,
     79  nonMatchSymbols,
     80  "\\P{Script=Telugu}"
     81 );
     82 testPropertyEscapes(
     83  /^\P{Script=Telu}+$/u,
     84  nonMatchSymbols,
     85  "\\P{Script=Telu}"
     86 );
     87 testPropertyEscapes(
     88  /^\P{sc=Telugu}+$/u,
     89  nonMatchSymbols,
     90  "\\P{sc=Telugu}"
     91 );
     92 testPropertyEscapes(
     93  /^\P{sc=Telu}+$/u,
     94  nonMatchSymbols,
     95  "\\P{sc=Telu}"
     96 );
     97 
     98 reportCompare(0, 0);