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