regex filter: fix assertion fail if regex wasn't properly compiled

This commit is contained in:
Andrzej Rybczak
2012-09-14 00:59:00 +02:00
parent 1891c1c050
commit e2889bfefd
3 changed files with 9 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ struct Regex
/// @return compilation error (if there was any)
const std::string &error() const;
/// @return true if regular expression is compiled, false otherwise
bool compiled() const;
/// compiles regular expression
/// @result true if compilation was successful, false otherwise
bool compile();