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/icgrep/re/re_parser_bre.h

    r5180 r5206  
    1313    class RE_Parser_BRE : public RE_Parser  {
    1414    public:
    15         RE_Parser_BRE(const std::string & regular_expression) : RE_Parser(regular_expression)  {
    16 
     15        RE_Parser_BRE(const std::string & regular_expression) : RE_Parser(regular_expression) {
     16            mReSyntax = RE_Syntax::BRE;
    1717        }
    1818
     
    2020        virtual bool isSetEscapeChar(char c) override;
    2121        virtual bool isUnsupportChartsetOperator(char c) override;
    22         virtual RE * parse_alt() override;
     22        virtual RE * parse_alt_with_intersect(RE* reToBeIntersected) override;
    2323        virtual RE * parse_next_item() override ;
    2424        virtual RE * parse_escaped() override;
     
    3232    private:
    3333        bool isEscapedCharAhead(char c);
    34         bool isCharAhead(char c);
     34
    3535    };
    3636}
Note: See TracChangeset for help on using the changeset viewer.