source: icGREP/icgrep-devel/icgrep/re/re_parser_ere.h @ 5217

Last change on this file since 5217 was 5206, checked in by xwa163, 3 years ago
  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 size: 682 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef ICGREP_RE_PARSER_ERE_H
8#define ICGREP_RE_PARSER_ERE_H
9
10#include <re/re_parser.h>
11namespace re {
12    class RE_Parser_ERE : public RE_Parser  {
13    public:
14        RE_Parser_ERE(const std::string & regular_expression) : RE_Parser(regular_expression) {
15            mReSyntax = RE_Syntax::ERE;
16        }
17
18    protected:
19        virtual bool isSetEscapeChar(char c) override;
20        virtual bool isUnsupportChartsetOperator(char c) override;
21    };
22}
23
24
25#endif //ICGREP_RE_PARSER_ERE_H
Note: See TracBrowser for help on using the repository browser.