1 #ifndef GAUDIUTILS_REGEX_H 2 #define GAUDIUTILS_REGEX_H 6 #include <boost/regex.hpp> 37 [](
typename C::const_reference i ) {
return boost::regex{i}; } );
43 [&](
const boost::regex& r ) {
return boost::regex_match( test, r ); } );
48 [&](
const boost::regex& r ) {
return boost::regex_match( test, r ); } );
66 return boost::regex_match( test, boost::regex{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.