Ignore:
Timestamp:
May 30, 2017, 10:55:14 AM (2 years ago)
Author:
cameron
Message:

Refactoring grepEngine: separate out codepoint/property value grep

File:
1 edited

Legend:

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

    r5476 r5481  
    2828    ~GrepEngine();
    2929
    30     void grepCodeGen(std::vector<re::RE *> REs, GrepModeType grepMode, bool UTF_16, GrepSource grepSource, GrepType grepType = GrepType::Normal);
     30    void grepCodeGen(std::vector<re::RE *> REs, GrepModeType grepMode, bool UTF_16, GrepSource grepSource);
    3131
    3232    void grepCodeGen_nvptx(std::vector<re::RE *> REs, GrepModeType grepMode, bool UTF_16);
     
    3737
    3838    uint64_t doGrep(const int32_t fileDescriptor, const uint32_t fileIdx) const;
    39    
    40     void doGrep(const char * buffer, const uint64_t length, const uint32_t fileIdx) const;
    41 
    42     re::CC * grepCodepoints();
    43 
    44     const std::vector<std::string> & grepPropertyValues(const std::string & propertyName);
    45    
     39       
    4640private:
    4741   
     
    4943};
    5044
     45void initFileResult(std::vector<std::string> filenames);
     46   
     47void PrintResult(GrepModeType grepMode, std::vector<size_t> & total_CountOnly);
     48   
    5149
    52 re::CC * getParsedCodePointSet();
    53 void setParsedCodePointSet();
     50re::CC * grepCodepoints(re::RE * pattern, char * UnicodeDataBuffer, size_t bufferLength);
     51   
     52const std::vector<std::string> & grepPropertyValues(const std::string& propertyName, re::RE * propertyValuePattern);
    5453
    55 void setParsedPropertyValues();
    56 
    57 void initFileResult(std::vector<std::string> filenames);
    58 void PrintResult(GrepModeType grepMode, std::vector<size_t> & total_CountOnly);
    5954}
    6055
Note: See TracChangeset for help on using the changeset viewer.