2 #ifndef _REGULAREXPRESSION_H_
3 #define _REGULAREXPRESSION_H_
5 #include "tools/ToolsConfig.h"
24 set(pattern, case_sensitive);
29 set(rhs._pattern.c_str(), rhs._case_sensitive);
54 friend class ToRemoveGNUCompilerWarning;
56 void set(
const char *pattern,
bool case_sensitive=
true);
66 void *_compiled_pattern;
RegularExpression(const char *pattern, bool case_sensitive=true)
Create RegularExpression with pattern for further matches.
Definition: RegularExpression.h:23
bool doesMatch(const char *input)
Test if 'input' matches current pattern.
~RegularExpression()
Destructor.
RegularExpression(const RegularExpression &rhs)
Copy constructor.
Definition: RegularExpression.h:28
Wrapper for Unix/GNU regex library.
Definition: RegularExpression.h:10
bool doesMatch(const stdString &input)
Check.
Definition: RegularExpression.h:49
static std::string fromGlobPattern(const std::string &glob)
Create a regular expression for a "glob" pattern: question mark - any character star - many character...