Ignore:
Timestamp:
Oct 8, 2017, 9:20:51 AM (21 months ago)
Author:
cameron
Message:

MatchAccumulator? modularization step

File:
1 edited

Legend:

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

    r5620 r5678  
    2424void *DoGrepThreadFunction(void *args);
    2525   
     26   
     27class MatchAccumulator {
     28public:
     29    MatchAccumulator() {};
     30    virtual void accumulate_match(const size_t lineNum, size_t line_start, size_t line_end) = 0;
     31};
     32
     33void accumulate_match_wrapper(intptr_t accum_addr, const size_t lineNum, size_t line_start, size_t line_end);
     34   
     35
    2636class GrepEngine {
    2737public:
     
    5161void PrintResults();
    5262   
     63//void grepBuffer(re::RE * pattern, const char * buffer, size_t bufferLength, MatchAccumulator * accum);
    5364
    5465re::CC * grepCodepoints(re::RE * pattern, char * UnicodeDataBuffer, size_t bufferLength);
    5566   
    56 const std::vector<std::string> & grepPropertyValues(const std::string& propertyName, re::RE * propertyValuePattern);
     67const std::vector<std::string> grepPropertyValues(const std::string& propertyName, re::RE * propertyValuePattern);
    5768
    5869}
Note: See TracChangeset for help on using the changeset viewer.