5 #include <boost/regex.hpp>
7 typedef boost::match_results<ustring::const_iterator> umatch;
8 typedef boost::basic_regex<char, boost::regex_traits<char> > uregex;
10 inline bool usearch (ustring::const_iterator first, ustring::const_iterator last, umatch& m, const uregex& re, boost::match_flag_type flags = boost::regex_constants::match_single_line) {
11 return regex_search (first, last, m, re, flags);
13 inline bool usearch (const ustring& s, umatch& m, const uregex& re, boost::match_flag_type flags = boost::regex_constants::match_single_line) {
14 return regex_search (s.begin (), s.end (), m, re, flags);
18 #endif /* UTIL_REGEXP_H */