Matcher.h | Matcher.h | |||
---|---|---|---|---|
skipping to change at line 41 | skipping to change at line 41 | |||
// | // | |||
// Description: | // Description: | |||
// | // | |||
// Status: IMPLEMENTED | // Status: IMPLEMENTED | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
// INCLUDES | // INCLUDES | |||
#include <iostream> | #include <iostream> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#ifdef HAVE_MINGW32 | ||||
#include "regex.h" | ||||
#else | ||||
#include <regex.h> | #include <regex.h> | |||
#endif | ||||
class Matcher { | class Matcher { | |||
public: | public: | |||
Matcher(const Chain& exp); | Matcher(const Chain& exp); | |||
~Matcher(); | ~Matcher(); | |||
void prepare(); | void prepare(); | |||
bool match(const Chain& str); | bool match(const Chain& str); | |||
private: | private: | |||
Chain _expr; | Chain _expr; | |||
regex_t _re; | regex_t* _pRE; | |||
bool _isPrepared; | bool _isPrepared; | |||
}; | }; | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 1 lines changed or added | |||