7 #include <boost/regex.hpp>
12 class regex :
public boost::regex {
17 explicit regex(
const std::string &pattern,
18 boost::regex_constants::syntax_option_type flags =
19 boost::regex_constants::match_default |
20 boost::regex_constants::no_except) :
21 boost::
regex(pattern, flags) {
38 static inline bool regex_match(
const std::string &input, boost::smatch &match,
43 static inline bool regex_match(
const char *input, boost::cmatch &match,
48 static inline bool regex_search(std::string::const_iterator &begin,
49 std::string::const_iterator &end,
50 boost::match_results<std::string::const_iterator> &results,
51 const regex &
regex, boost::regex_constants::match_flag_type flags) {
58 boost::regex_constants::match_flag_type flags) {
65 #endif // BASE_REGEX_H_
static const std::string regex_replace(const std::string &input, const regex ®ex, const char *format, boost::regex_constants::match_flag_type flags)
static bool regex_match(const std::string &input, const regex ®ex)
regex(const std::string &pattern, boost::regex_constants::syntax_option_type flags=boost::regex_constants::match_default|boost::regex_constants::no_except)
static bool regex_search(const std::string &input, const regex ®ex)