#ifndef UTILS_REGEXWRAP_H #define UTILS_REGEXWRAP_H #include #include struct utils_regex { explicit utils_regex( const std::string& pattern, int cflags=REG_EXTENDED); utils_regex( const utils_regex& rhs); utils_regex& operator=( const utils_regex& rhs); ~utils_regex(); std::string pattern; int cflags; regex_t reg; bool query_is_bad; }; /* use utils_regex with regexec(). */ #endif