source: icGREP/icgrep-devel/icgrep/re/re_parser_pcre.h @ 5181

Last change on this file since 5181 was 5180, checked in by xwa163, 3 years ago

Support BRE and ERE for regex syntax.

File size: 621 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_PCRE_H
8#define ICGREP_RE_PARSER_PCRE_H
9
10#include <re/re_parser.h>
11namespace re {
12    class RE_Parser_PCRE : public RE_Parser {
13    public:
14        RE_Parser_PCRE(const std::string & regular_expression) : RE_Parser(regular_expression) {
15            fSupportNonCaptureGroup = true;
16        }
17    protected:
18        virtual bool isSetEscapeChar(char c) override;
19    };
20}
21
22#endif //ICGREP_RE_PARSER_PCRE_H
Note: See TracBrowser for help on using the repository browser.