C-strings (1) | template <class charT, class traits> bool regex_match (const charT* s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
---|---|
strings (2) | template <class ST, class SA, char charT, class traits> bool regex_match (const basic_string<charT,ST,SA>& s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
ranges (3) | template <class BidirectionalIterator, class charT, class traits> bool regex_match (BidirectionalIterator first, BidirectionalIterator last, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
with match_results (4,5,6) | template <class charT, class Alloc, class traits> bool regex_match (const charT* s, match_results<const charT*, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class ST, class SA, class Alloc, class charT, class traits> bool regex_match (const basic_string<charT,ST,SA>& s, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class BidirectionalIterator, class Alloc, class charT, class traits> bool regex_match (BidirectionalIterator first, BidirectionalIterator last, match_results<BidirectionalIterator, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
C-strings (1) | template <class charT, class traits> bool regex_match (const charT* s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
---|---|
strings (2) | template <class ST, class SA, char charT, class traits> bool regex_match (const basic_string<charT,ST,SA>& s, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
ranges (3) | template <class BidirectionalIterator, class charT, class traits> bool regex_match (BidirectionalIterator first, BidirectionalIterator last, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
with match_results (4,5,6) | template <class charT, class Alloc, class traits> bool regex_match (const charT* s, match_results<const charT*, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class ST, class SA, class Alloc, class charT, class traits> bool regex_match (const basic_string<charT,ST,SA>& s, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default);template <class BidirectionalIterator, class Alloc, class charT, class traits> bool regex_match (BidirectionalIterator first, BidirectionalIterator last, match_results<BidirectionalIterator, Alloc>& m, const basic_regex<charT,traits>& rgx, regex_constants::match_flag_type flags = regex_constants::match_default); |
moving string (deleted) (7) | template <class ST, class SA, class Alloc, class charT, class traits> bool regex_match (const basic_string<charT,ST,SA>&&, match_results<typename basic_string<charT,ST,SA>::const_iterator,Alloc>&, const basic_regex<charT,traits>&, regex_constants::match_flag_type=regex_constants::match_default) = delete; |
flag* | effects on match | 说明 |
---|---|---|
match_default | Default | 默认匹配行为。 此常量的值为零**。 |
match_not_bol | Not Beginning-Of-Line | 第一个字符不被视为行首("^"不匹配)。 |
match_not_eol | Not End-Of-Line | 最后一个字符不被视为行尾("$"不匹配)。 |
match_not_bow | Not Beginning-Of-Word | 转义序列"\b"不匹配为单词开头。 |
match_not_eow | Not End-Of-Word | 转义序列"\b"不匹配为单词结尾。 |
match_any | Any match | 如果可能存在多个匹配,则任何一个匹配都可以接受。 |
match_not_null | Not null | 空序列不匹配。 |
match_continuous | Continuous | 表达式必须匹配从第一个字符开始的子序列。 子序列必须从第一个字符开始才能匹配。 |
match_prev_avail | Previous Available | 第一个字符之前存在一个或多个字符。(match_not_bol和match_not_bow被忽略) |
format_default | Default | Same asmatch_default. 此常量的值为零**。 |
format_sed | 无 | 此函数忽略。 有关更多信息,请参阅 regex_constants。 |
format_no_copy | ||
format_first_only |
|
|
string literal matched string object matched range matched string literal with 3 matches string object with 3 matches range with 3 matches the matches were: [subject] [sub] [ject] |