tor-browser

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

Script_-_Tamil.js (2214B)


      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=Tamil`
      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    0x000B9C,
     19    0x000BD0,
     20    0x000BD7,
     21    0x011FFF
     22  ],
     23  ranges: [
     24    [0x000B82, 0x000B83],
     25    [0x000B85, 0x000B8A],
     26    [0x000B8E, 0x000B90],
     27    [0x000B92, 0x000B95],
     28    [0x000B99, 0x000B9A],
     29    [0x000B9E, 0x000B9F],
     30    [0x000BA3, 0x000BA4],
     31    [0x000BA8, 0x000BAA],
     32    [0x000BAE, 0x000BB9],
     33    [0x000BBE, 0x000BC2],
     34    [0x000BC6, 0x000BC8],
     35    [0x000BCA, 0x000BCD],
     36    [0x000BE6, 0x000BFA],
     37    [0x011FC0, 0x011FF1]
     38  ]
     39 });
     40 testPropertyEscapes(
     41  /^\p{Script=Tamil}+$/u,
     42  matchSymbols,
     43  "\\p{Script=Tamil}"
     44 );
     45 testPropertyEscapes(
     46  /^\p{Script=Taml}+$/u,
     47  matchSymbols,
     48  "\\p{Script=Taml}"
     49 );
     50 testPropertyEscapes(
     51  /^\p{sc=Tamil}+$/u,
     52  matchSymbols,
     53  "\\p{sc=Tamil}"
     54 );
     55 testPropertyEscapes(
     56  /^\p{sc=Taml}+$/u,
     57  matchSymbols,
     58  "\\p{sc=Taml}"
     59 );
     60 
     61 const nonMatchSymbols = buildString({
     62  loneCodePoints: [
     63    0x000B84,
     64    0x000B91,
     65    0x000B9B,
     66    0x000B9D,
     67    0x000BC9
     68  ],
     69  ranges: [
     70    [0x00DC00, 0x00DFFF],
     71    [0x000000, 0x000B81],
     72    [0x000B8B, 0x000B8D],
     73    [0x000B96, 0x000B98],
     74    [0x000BA0, 0x000BA2],
     75    [0x000BA5, 0x000BA7],
     76    [0x000BAB, 0x000BAD],
     77    [0x000BBA, 0x000BBD],
     78    [0x000BC3, 0x000BC5],
     79    [0x000BCE, 0x000BCF],
     80    [0x000BD1, 0x000BD6],
     81    [0x000BD8, 0x000BE5],
     82    [0x000BFB, 0x00DBFF],
     83    [0x00E000, 0x011FBF],
     84    [0x011FF2, 0x011FFE],
     85    [0x012000, 0x10FFFF]
     86  ]
     87 });
     88 testPropertyEscapes(
     89  /^\P{Script=Tamil}+$/u,
     90  nonMatchSymbols,
     91  "\\P{Script=Tamil}"
     92 );
     93 testPropertyEscapes(
     94  /^\P{Script=Taml}+$/u,
     95  nonMatchSymbols,
     96  "\\P{Script=Taml}"
     97 );
     98 testPropertyEscapes(
     99  /^\P{sc=Tamil}+$/u,
    100  nonMatchSymbols,
    101  "\\P{sc=Tamil}"
    102 );
    103 testPropertyEscapes(
    104  /^\P{sc=Taml}+$/u,
    105  nonMatchSymbols,
    106  "\\P{sc=Taml}"
    107 );
    108 
    109 reportCompare(0, 0);