diff options
Diffstat (limited to 'debug.cc')
-rw-r--r-- | debug.cc | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -81,13 +81,8 @@ bool _free_debug_stream = false; bool _debug_active(const char * const cls) { if (char * debug = std::getenv("DEBUG_CLASS")) { - static const char * error; - static int erroffset; - static int ovec[30]; - static pcre * class_regexp = pcre_compile(debug, PCRE_CASELESS, - &error, &erroffset, NULL); - return pcre_exec(class_regexp, NULL, cls, std::strlen(cls), - 0, 0, ovec, 30) >= 0; + static boost::regex class_regexp(debug); + return boost::regex_match(cls, class_regexp); } return false; } |