match a string against a configurable list of patterns More...
#include <configuration.h>
Public Member Functions | |
MatchAgainstConfig (char const *Config) | |
virtual | ~MatchAgainstConfig () |
bool | Match (char const *str) const |
Returns true for a string matching one of the patterns. More... | |
bool | Match (std::string const &str) const |
bool | wasConstructedSuccessfully () const |
returns if the matcher setup was successful More... | |
Private Member Functions | |
void | clearPatterns () |
Private Attributes | |
std::vector< regex_t * > | patterns |
match a string against a configurable list of patterns
Configuration::MatchAgainstConfig::MatchAgainstConfig | ( | char const * | Config | ) |
|
virtual |
|
private |
bool Configuration::MatchAgainstConfig::Match | ( | char const * | str | ) | const |
Returns true for a string matching one of the patterns.
Referenced by pkgDepCache::DefaultRootSetFunc::InRootSet().
|
inline |
|
inline |
returns if the matcher setup was successful
References patterns.
|
private |
Referenced by wasConstructedSuccessfully().