28#include <unordered_set>
Enables comparison of strings against particular set of patterns.
Definition: pattern_matcher.h:36
static const char WILD_ESCAPE
escape sequence character
Definition: pattern_matcher.h:50
size_t add_patterns(const std::string &patterns, char delimiter=':')
Parses concatenated patterns and adds them to internal pattern list.
Definition: pattern_matcher.cc:39
static const char WILD_ONE
any (single) character wild card
Definition: pattern_matcher.h:44
void clear()
Removes all previously stored patterns from pattern matcher.
Definition: pattern_matcher.cc:96
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:77
std::unordered_set< std::string > m_patterns
used for storing matcher patterns
Definition: pattern_matcher.h:53
static const char WILD_MANY
zero or many characters wild card
Definition: pattern_matcher.h:47
A better implementation of the UNIX ctype(3) library.
const char * delimiter
Definition: mysqlslap.cc:158
Definition: m_ctype.h:385