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/grep_engine.h

    r5151 r5206  
    1111#include <re/re_re.h>
    1212#include <llvm/ExecutionEngine/ExecutionEngine.h>
     13#include <grep_type.h>
    1314
    1415
     
    2728    ~GrepEngine();
    2829 
    29     void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool UTF_16 = false, bool isNameExpression = false);
     30    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool UTF_16 = false, GrepType grepType = GrepType::Normal);
    3031   
    3132    void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<size_t> &total_CountOnly, bool UTF_16);
    3233   
    3334    re::CC *  grepCodepoints();
     35    const std::vector<std::string> & grepPropertyValues(const std::string& propertyName);
    3436   
    3537private:
     
    3941    GrepFunctionType_CPU mGrepFunction_CPU;
    4042
    41     bool mIsNameExpression;
     43    GrepType mGrepType;
    4244    llvm::ExecutionEngine * mEngine;
    4345};
     
    4951void setParsedCodePointSet();
    5052
     53const std::vector<std::string>& getParsedProeprtyValues();
     54void setParsedPropertyValues();
     55
     56
    5157void initResult(std::vector<std::string> filenames);
    5258void PrintResult(bool CountOnly, std::vector<size_t> & total_CountOnly);
Note: See TracChangeset for help on using the changeset viewer.