1 #ifndef GAUDIUTILS_REGEX_H
2 #define GAUDIUTILS_REGEX_H
7 #include <boost/regex.hpp>
32 template <
typename T>
bool matchOr(
const std::string &
test,
const T & regexps)
35 for (
typename T::const_iterator
i = regexps.begin();
36 i != regexps.end(); ++
i)
39 if (boost::regex_match(test, pattern))
return true;
49 template <
typename T>
bool matchAnd(
const std::string &
test,
const T & regexps)
52 for (
typename T::const_iterator
i = regexps.begin();
53 i != regexps.end(); ++
i)
56 if (!boost::regex_match(test, pattern))
return false;
bool matchOr(const std::string &test, const T ®exps)
return true if the string is in any of the regex's
bool matchAnd(const std::string &test, const T ®exps)
return true if the string is in all of the regex's
This is a number of static methods for bootstrapping the Gaudi framework.