27#include <unordered_set>
Enables comparison of strings against particular set of patterns.
Definition: pattern_matcher.h:37
static const char WILD_ESCAPE
escape sequence character
Definition: pattern_matcher.h:51
size_t add_patterns(const std::string &patterns, char delimiter=':')
Parses concatenated patterns and adds them to internal pattern list.
Definition: pattern_matcher.cc:41
static const char WILD_ONE
any (single) character wild card
Definition: pattern_matcher.h:45
void clear()
Removes all previously stored patterns from pattern matcher.
Definition: pattern_matcher.cc:98
bool is_matching(const std::string &text, const CHARSET_INFO *info) const
Verifies whether text matches any of the matcher internal patterns.
Definition: pattern_matcher.cc:79
std::unordered_set< std::string > m_patterns
used for storing matcher patterns
Definition: pattern_matcher.h:54
static const char WILD_MANY
zero or many characters wild card
Definition: pattern_matcher.h:48
A better implementation of the UNIX ctype(3) library.
const char * delimiter
Definition: mysqlslap.cc:160
Definition: m_ctype.h:421