Ignore:
Timestamp:
Mar 29, 2017, 2:29:52 PM (3 years ago)
Author:
nmedfort
Message:

Support for stdin. Needs more testing.

File:
1 edited

Legend:

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

    r5341 r5377  
    2323    ~GrepEngine();
    2424 
    25     void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool UTF_16 = false, GrepType grepType = GrepType::Normal);
     25    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool UTF_16 = false, GrepType grepType = GrepType::Normal, const bool usingStdIn = false);
    2626    void multiGrepCodeGen(std::string moduleName, std::vector<re::RE *> REs, bool CountOnly, bool UTF_16 = false, GrepType grepType = GrepType::Normal);
    2727     
    28     void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<size_t> & total_CountOnly, bool UTF_16);
     28    void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<size_t> & total_CountOnly);
     29
     30    void doGrep(const int fileIdx, bool CountOnly, std::vector<size_t> & total_CountOnly);
    2931   
    3032    re::CC *  grepCodepoints();
     
    5052void setParsedPropertyValues();
    5153
    52 
    53 void initResult(std::vector<std::string> filenames);
     54void initFileResult(std::vector<std::string> filenames);
    5455void PrintResult(bool CountOnly, std::vector<size_t> & total_CountOnly);
    5556
Note: See TracChangeset for help on using the changeset viewer.