Ignore:
Timestamp:
Nov 7, 2016, 3:54:09 PM (3 years ago)
Author:
xwa163
Message:
  1. Extend Regex Syntax, include: (a) RL2.6 of UTS#18, support regex in property value. e.g. \p{script=/.*hir.*/} (b) Support syntax of property expression when parsing boundary. e.g. \b{greek} (c) Extend property expression in non capture group. e.g. (?\p{upper}:\p{greek}\p{script=hira})
  2. Add related test cases
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/QA/greptest.xml

    r5164 r5206  
    799799ن‍ 
    800800</datafile>
     801
    801802<grepcase regexp="^\X$" datafile="graphemebreaktest" grepcount="55"/>
    802803<!--<grepcase regexp="^\X\X$" datafile="graphemebreaktest" grepcount="153"/>
     
    810811<grepcase regexp="\B{g}\x{308}" datafile="graphemebreaktest" grepcount="100"/>
    811812
     813<datafile id="hira_border">aa ba ca
     814&#x3096;&#x309d;&#x002d;&#x3088;&#x308a;a
     815&#x3096;a
     816&#x3096; &#x3096;
     817</datafile>
     818<datafile id="hiragana_and_katakana">&#x3042;&#x3044;
     819&#x3046;&#x3048;
     820&#x304a;
     821&#x30a2;&#x30a4;
     822&#x30a6;&#x30a8;&#x30aa;
     823</datafile>
     824<datafile id="upper_lower_greek">&#x0391;&#x03b1;&#x0392;&#x03b2;&#x0393;&#x03b3;
     825&#x0391;&#x0392;&#x0393;
     826&#x03b1;&#x03b2;&#x03b3;
     827</datafile>
     828
     829<grepcase regexp="\b{script=hira}a" datafile="hira_border" grepcount="2"/>
     830<grepcase regexp="\b{script=hira}" datafile="hira_border" grepcount="3"/>
     831<grepcase regexp="\p{script=/hir./}" datafile="hira_border" grepcount="3"/>
     832<grepcase regexp="\p{script=/.*hir.*/}" datafile="hira_border" grepcount="3"/>
     833<grepcase regexp="\p{script=/hir.gana/}" datafile="hiragana_and_katakana" grepcount="3"/>
     834<grepcase regexp="\p{script=/kat.kana/}" datafile="hiragana_and_katakana" grepcount="2"/>
     835<grepcase regexp="\p{script=/(kata|Hira).ana/}" datafile="hiragana_and_katakana" grepcount="5"/>
     836
     837<grepcase regexp="(?:\p{greek}\p{greek}\p{greek})" datafile="upper_lower_greek" grepcount="3"/>
     838<grepcase regexp="(?\p{upper}:\p{greek}\p{greek}\p{greek})" datafile="upper_lower_greek" grepcount="1"/>
     839<grepcase regexp="(?\p{lower}:\p{greek}\p{greek}\p{greek})" datafile="upper_lower_greek" grepcount="1"/>
     840<grepcase regexp="(?\p{upper}:\p{greek})" datafile="upper_lower_greek" grepcount="2"/>
     841
    812842<grepcase regexp="\N{AIRPLANE}" datafile="../All_good" grepcount="8"/>
     843
    813844</greptest>
Note: See TracChangeset for help on using the changeset viewer.