1 #ifndef GAUDIUTILS_REGEX_H 2 #define GAUDIUTILS_REGEX_H 7 #include <boost/regex.hpp> 34 [](
typename C::const_reference i) {
return boost::regex{i}; } );
39 [&](
const boost::regex& r) {
40 return boost::regex_match(test, r);
45 [&](
const boost::regex& r) {
46 return boost::regex_match(test, r);
65 [&](
typename T::const_reference i) {
66 return boost::regex_match(test, boost::regex{i});
83 [&](
typename T::const_reference i) {
84 return boost::regex_match(test, boost::regex{i});
bool Or(const std::string &test) const
bool matchOr(const std::string &test, const T ®exps)
return true if the string is in any of the regex's
bool And(const std::string &test) const
T back_inserter(T...args)
std::vector< boost::regex > m_regs
bool matchAnd(const std::string &test, const T ®exps)
return true if the string is in all of the regex's
Helper functions to set/get the application return code.