libstdc++
|
A facility for performing regular expression pattern matching.
typedef regex_token_iterator<const char*> std::cregex_token_iterator |
typedef sub_match<const char*> std::csub_match |
typedef basic_regex<char> std::regex |
typedef regex_token_iterator<string::const_iterator> std::sregex_token_iterator |
typedef sub_match<string::const_iterator> std::ssub_match |
typedef regex_token_iterator<const wchar_t*> std::wcregex_token_iterator |
typedef sub_match<const wchar_t*> std::wcsub_match |
typedef basic_regex<wchar_t> std::wregex |
typedef regex_token_iterator<wstring::const_iterator> std::wsregex_token_iterator |
typedef sub_match<wstring::const_iterator> std::wssub_match |
bool std::regex_traits< _Ch_type >::isctype | ( | _Ch_type | __c, |
char_class_type | __f | ||
) | const [inherited] |
Determines if c
is a member of an identified class.
c | a character. |
f | a class type (as returned from lookup_classname). |
c
is a member of the classification represented by f
, false otherwise.std::bad_cast | if the current locale does not have a ctype facet. |
Definition at line 284 of file regex.h.
References std::__ctype_abstract_base< _CharT >::is(), std::use_facet(), and std::__ctype_abstract_base< _CharT >::widen().
bool std::operator!= | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the inequivalence of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 879 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator!= | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the inequivalence of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1268 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator!= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
Tests the inequivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A const string reference. |
Definition at line 1342 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator!= | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the inequivalence of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 955 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator!= | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the inequivalence of an iterator value and a regular expression submatch.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1120 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator!= | ( | const match_results< _Bi_iter, _Allocator > & | __m1, |
const match_results< _Bi_iter, _Allocator > & | __m2 | ||
) | [inline] |
Compares two match_results for inequality.
bool std::operator!= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
Tests the inequivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A pointer to a string. |
Definition at line 1194 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator!= | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
Tests the inequivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1036 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator< | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the ordering of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 891 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator< | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
bool std::operator< | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1280 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator< | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 968 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator< | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
bool std::operator< | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1132 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator< | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
basic_ostream<_Ch_type, _Ch_traits>& std::operator<< | ( | basic_ostream< _Ch_type, _Ch_traits > & | __os, |
const sub_match< _Bi_iter > & | __m | ||
) | [inline] |
Inserts a matched string into an output stream.
os | The output stream. |
m | A submatch string. |
Definition at line 1405 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator<= | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1316 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator<= | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
bool std::operator<= | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the ordering of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 903 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator<= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
bool std::operator<= | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1168 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator<= | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1007 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator<= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
bool std::operator== | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the equivalence of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1255 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator== | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
Tests the equivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1021 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator== | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
Tests the equivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A const string reference. |
Definition at line 1329 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator== | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the equivalence of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 940 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator== | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the equivalence of a C string and a regular expression submatch.
lhs | A C string. |
rhs | A regular expression submatch. |
Definition at line 1107 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator== | ( | const match_results< _Bi_iter, _Allocator > & | __m1, |
const match_results< _Bi_iter, _Allocator > & | __m2 | ||
) | [inline] |
Compares two match_results for equality.
bool std::operator== | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the equivalence of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 867 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator== | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
Tests the equivalence of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A pointer to a string? |
Definition at line 1181 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1064 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1292 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A const string reference. |
Definition at line 1366 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 981 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1144 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator> | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the ordering of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 927 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator> | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1218 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | typename iterator_traits< _Bi_iter >::value_type const & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1304 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | const sub_match< _Bi_iter > & | __lhs, |
const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1078 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const & | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A const string reference. |
Definition at line 1378 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | typename iterator_traits< _Bi_iter >::value_type const * | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 1156 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | const basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > & | __lhs, |
const sub_match< _Bi_iter > & | __rhs | ||
) | [inline] |
Tests the ordering of a string and a regular expression submatch.
lhs | A string. |
rhs | A regular expression submatch. |
Definition at line 994 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::operator>= | ( | const sub_match< _BiIter > & | __lhs, |
const sub_match< _BiIter > & | __rhs | ||
) | [inline] |
Tests the ordering of two regular expression submatches.
lhs | First regular expression submatch. |
rhs | Second regular expression submatch. |
Definition at line 915 of file regex.h.
References std::sub_match< _BiIter >::compare().
bool std::operator>= | ( | const sub_match< _Bi_iter > & | __lhs, |
typename iterator_traits< _Bi_iter >::value_type const * | __rhs | ||
) | [inline] |
Tests the ordering of a regular expression submatch and a string.
lhs | A regular expression submatch. |
rhs | A string. |
Definition at line 1230 of file regex.h.
References std::sub_match< _BiIter >::str().
bool std::regex_match | ( | const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > & | __s, |
match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
Determines if there is a match between the regular expression e
and a string.
s | The string to match. |
m | The match results. |
re | The regular expression. |
flags | Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1903 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_match().
bool std::regex_match | ( | const _Ch_type * | __s, |
match_results< const _Ch_type *, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __f = regex_constants::match_default |
||
) | [inline] |
Determines if there is a match between the regular expression e
and a C-style null-terminated string.
s | The C-style null-terminated string to match. |
m | The match results. |
re | The regular expression. |
f | Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1879 of file regex.h.
References std::regex_match().
bool std::regex_match | ( | const _Ch_type * | __s, |
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __f = regex_constants::match_default |
||
) | [inline] |
Indicates if there is a match between the regular expression e
and a C-style null-terminated string.
s | The C-style null-terminated string to match. |
re | The regular expression. |
f | Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1926 of file regex.h.
References std::regex_match().
bool std::regex_match | ( | const basic_string< _Ch_type, _Ch_traits, _Str_allocator > & | __s, |
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
Indicates if there is a match between the regular expression e
and a string.
s | [IN] The string to match. |
re | [IN] The regular expression. |
flags | [IN] Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1948 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_match().
bool std::regex_match | ( | _Bi_iter | __s, |
_Bi_iter | __e, | ||
match_results< _Bi_iter, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) |
Determines if there is a match between the regular expression e
and all of the character sequence [first, last).
s | Start of the character sequence to match. |
e | One-past-the-end of the character sequence to match. |
m | The match results. |
re | The regular expression. |
flags | Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1823 of file regex.h.
Referenced by std::regex_match().
bool std::regex_match | ( | _Bi_iter | __first, |
_Bi_iter | __last, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) |
Indicates if there is a match between the regular expression e
and all of the character sequence [first, last).
first | Beginning of the character sequence to match. |
last | One-past-the-end of the character sequence to match. |
re | The regular expression. |
flags | Controls how the regular expression is matched. |
true | A match exists. |
false | Otherwise. |
an | exception of type regex_error. |
Definition at line 1854 of file regex.h.
References std::regex_match().
basic_string<_Ch_type> std::regex_replace | ( | const basic_string< _Ch_type > & | __s, |
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
const basic_string< _Ch_type > & | __fmt, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
s | |
e | |
fmt | |
flags |
s
with replacements.an | exception of type regex_error. |
Definition at line 2127 of file regex.h.
References std::back_inserter(), std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_replace().
_Out_iter std::regex_replace | ( | _Out_iter | __out, |
_Bi_iter | __first, | ||
_Bi_iter | __last, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
const basic_string< _Ch_type > & | __fmt, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
out | |
first | |
last | |
e | |
fmt | |
flags |
an | exception of type regex_error. |
Definition at line 2107 of file regex.h.
Referenced by std::regex_replace().
bool std::regex_search | ( | const basic_string< _Ch_type, _Ch_traits, _Ch_alloc > & | __s, |
match_results< typename basic_string< _Ch_type, _Ch_traits, _Ch_alloc >::const_iterator, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
regex_constants::match_flag_type | __f = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a string.
s | [IN] A C++ string to search for the regex. |
m | [OUT] The set of regex matches. |
e | [IN] The regex to search for in s . |
f | [IN] The search flags. |
true | A match was found within the string. |
false | No match was found within the string, the content of m is undefined. |
an | exception of type regex_error. |
Definition at line 2081 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_search().
bool std::regex_search | ( | _Bi_iter | __first, |
_Bi_iter | __last, | ||
match_results< _Bi_iter, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a range.
first | [IN] The start of the string to search. |
last | [IN] One-past-the-end of the string to search. |
m | [OUT] The match results. |
re | [IN] The regular expression to search for. |
flags | [IN] Search policy flags. |
true | A match was found within the string. |
false | No match was found within the string, the content of m is undefined. |
an | exception of type regex_error. |
Definition at line 1973 of file regex.h.
Referenced by std::regex_search().
bool std::regex_search | ( | const _Ch_type * | __s, |
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
regex_constants::match_flag_type | __f = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a C-string.
s | [IN] The C-string to search. |
e | [IN] The regular expression to search for. |
f | [IN] Search policy flags. |
true | A match was found within the string. |
false | No match was found within the string. |
an | exception of type regex_error. |
Definition at line 2038 of file regex.h.
References std::regex_search().
bool std::regex_search | ( | const _Ch_type * | __s, |
match_results< const _Ch_type *, _Allocator > & | __m, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
regex_constants::match_flag_type | __f = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a C-string.
s | [IN] A C-string to search for the regex. |
m | [OUT] The set of regex matches. |
e | [IN] The regex to search for in s . |
f | [IN] The search flags. |
true | A match was found within the string. |
false | No match was found within the string, the content of m is undefined. |
an | exception of type regex_error. |
Definition at line 2018 of file regex.h.
References std::regex_search().
bool std::regex_search | ( | _Bi_iter | __first, |
_Bi_iter | __last, | ||
const basic_regex< _Ch_type, _Rx_traits > & | __re, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a range.
first | [IN] The start of the string to search. |
last | [IN] One-past-the-end of the string to search. |
re | [IN] The regular expression to search for. |
flags | [IN] Search policy flags. |
true | A match was found within the string. |
false | No match was found within the string. |
an | exception of type regex_error. |
Definition at line 1994 of file regex.h.
References std::regex_search().
bool std::regex_search | ( | const basic_string< _Ch_type, _Ch_traits, _String_allocator > & | __s, |
const basic_regex< _Ch_type, _Rx_traits > & | __e, | ||
regex_constants::match_flag_type | __flags = regex_constants::match_default |
||
) | [inline] |
Searches for a regular expression within a string.
s | [IN] The string to search. |
e | [IN] The regular expression to search for. |
flags | [IN] Search policy flags. |
true | A match was found within the string. |
false | No match was found within the string. |
an | exception of type regex_error. |
Definition at line 2058 of file regex.h.
References std::regex_search().
void std::swap | ( | basic_regex< _Ch_type, _Rx_traits > & | __lhs, |
basic_regex< _Ch_type, _Rx_traits > & | __rhs | ||
) | [inline] |
Swaps the contents of two regular expression objects.
lhs | First regular expression. |
rhs | Second regular expression. |
Definition at line 737 of file regex.h.
References std::basic_regex< _Ch_type, _Rx_traits >::swap().
void std::swap | ( | match_results< _Bi_iter, _Allocator > & | __lhs, |
match_results< _Bi_iter, _Allocator > & | __rhs | ||
) | [inline] |
Swaps two match results.
lhs | A match result. |
rhs | A match result. |
The contents of the two match_results objects are swapped.
Definition at line 1793 of file regex.h.
References std::match_results< _Bi_iter, _Allocator >::swap().
int std::regex_traits< _Ch_type >::value | ( | _Ch_type | __ch, |
int | __radix | ||
) | const [inherited] |
Converts a digit to an int.
ch | a character representing a digit. |
radix | the radix if the numeric conversion (limited to 8, 10, or 16). |
Definition at line 320 of file regex.h.
References std::basic_ios< _CharT, _Traits >::fail(), std::hex(), and std::oct().