diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2014-01-07 15:40:29 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2014-01-07 15:40:29 +0200 |
| commit | 6c92add4b94e1b5ab35f197fc51e427b1c5d9d77 (patch) | |
| tree | d43a421dede08b4a2cf845715541c7a13eaaa834 /TRexpp.h | |
| parent | 83746583b5dbcf4c470cad3ac177a0c24d0f23a8 (diff) | |
| download | tiny-rex-master.tar.gz tiny-rex-master.zip | |
Diffstat (limited to 'TRexpp.h')
| -rw-r--r-- | TRexpp.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -27,9 +27,7 @@ ****************************************************************/ -extern "C" { #include "trex.h" -} struct TRexParseException{TRexParseException(const TRexChar *c):desc(c){}const TRexChar *desc;}; @@ -38,10 +36,10 @@ public: TRexpp() { _exp = (TRex *)0; } ~TRexpp() { CleanUp(); } // compiles a regular expression - void Compile(const TRexChar *pattern) { + void Compile(const TRexChar *pattern, int flags) { const TRexChar *error; CleanUp(); - if(!(_exp = trex_compile(pattern,&error))) + if(!(_exp = trex_compile(pattern,&error,flags))) throw TRexParseException(error); } // return true if the given text match the expression |
