source: icGREP/icgrep-devel/icgrep/toolchain/grep_pipeline.h @ 5679

Last change on this file since 5679 was 5679, checked in by cameron, 22 months ago

Refactoring progress: \N uses name property; delay resolution of recursive property expressions, property object regexp support

File size: 722 bytes
Line 
1/*
2 *  Copyright (c) 2017 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6#ifndef GREP_PIPELINE_H
7#define GREP_PIPELINE_H
8
9#include <stdlib.h>
10#include <stdint.h>
11
12namespace re { class RE; }
13
14namespace grep {
15   
16class MatchAccumulator {
17public:
18    MatchAccumulator() {};
19    virtual void accumulate_match(const size_t lineNum, size_t line_start, size_t line_end) = 0;
20};
21
22void accumulate_match_wrapper(intptr_t accum_addr, const size_t lineNum, size_t line_start, size_t line_end);
23   
24void grepBuffer(re::RE * pattern, const char * buffer, size_t bufferLength, MatchAccumulator * accum);
25
26}
27
28#endif
Note: See TracBrowser for help on using the repository browser.