![]() |
Home | Libraries | People | FAQ | More |
boost::xpressive::regex_search — Determines whether there is some sub-sequence within [begin,end) that matches the regular expression re.
template<typename OtherBidiIter, typename BidiIter> bool regex_search(OtherBidiIter begin, OtherBidiIter end, match_results< BidiIter > & what, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename OtherBidiIter, typename BidiIter> bool regex_search(OtherBidiIter begin, OtherBidiIter end, basic_regex< BidiIter > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename Char> bool regex_search(Char const * begin, match_results< Char const * > & what, basic_regex< Char const * > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename Char, typename Traits, typename Alloc> bool regex_search(std::basic_string< Char, Traits, Alloc > const & str, match_results< typename std::basic_string< Char, Traits, Alloc >::const_iterator > & what, basic_regex< typename std::basic_string< Char, Traits, Alloc >::const_iterator > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename Char> bool regex_search(Char const * begin, basic_regex< Char const * > const & re, regex_constants::match_flag_type flags = regex_constants::match_default); template<typename Char, typename Traits, typename Alloc> bool regex_search(std::basic_string< Char, Traits, Alloc > const & str, basic_regex< typename std::basic_string< Char, Traits, Alloc >::const_iterator > const & re, regex_constants::match_flag_type flags = regex_constants::match_default);
Determines whether there is some sub-sequence within [begin,end) that matches the regular expression re.
Parameters: |
|
||||||||||
Requires: |
Types BidiIter and OtherBidiIter meet the requirements of a Bidirectional Iterator (24.1.4). OtherBidiIter is convertible to BidiIter. [begin,end) denotes a valid iterator range. |
||||||||||
Returns: | true if a match is found, false otherwise |
||||||||||
Throws: | regex_error on stack exhaustion |
Copyright © 2003, 2004 Eric Niebler |