Ignore:
Timestamp:
Jun 9, 2016, 3:34:07 PM (3 years ago)
Author:
xuedongx
Message:

Support over UTF-16 representation of Unicode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.h

    r5037 r5045  
    2626    ~GrepEngine();
    2727 
    28     void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool isNameExpression = false);
     28    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool UTF_16 = false, bool isNameExpression = false);
    2929   
    30     void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<uint64_t> &total_CountOnly);
     30    void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<uint64_t> &total_CountOnly, bool UTF_16);
    3131   
    3232    re::CC *  grepCodepoints();
     
    3434private:
    3535   
    36     static bool finalLineIsUnterminated(const char * const fileBuffer, const size_t fileSize);
     36    static bool finalLineIsUnterminated(const char * const fileBuffer, const size_t fileSize, bool UTF_16);
    3737
    3838    GrepFunctionType mGrepFunction;
Note: See TracChangeset for help on using the changeset viewer.