libstdc++
|
Modules | |
Base and Implementation Classes | |
Namespaces | |
std::regex_constants | |
Typedefs | |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
using | std::__sub_match_string = basic_string< typename iterator_traits< _Bi_iter >::value_type, _Ch_traits, _Ch_alloc > |
typedef match_results< const char * > | std::cmatch |
typedef regex_iterator< const char * > | std::cregex_iterator |
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 match_results< string::const_iterator > | std::smatch |
typedef regex_iterator< string::const_iterator > | std::sregex_iterator |
typedef regex_token_iterator< string::const_iterator > | std::sregex_token_iterator |
typedef sub_match< string::const_iterator > | std::ssub_match |
typedef match_results< const wchar_t * > | std::wcmatch |
typedef regex_iterator< const wchar_t * > | std::wcregex_iterator |
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 match_results< wstring::const_iterator > | std::wsmatch |
typedef regex_iterator< wstring::const_iterator > | std::wsregex_iterator |
typedef regex_token_iterator< wstring::const_iterator > | std::wsregex_token_iterator |
typedef sub_match< wstring::const_iterator > | std::wssub_match |
Functions | |
template<typename _Bi_iter > | |
const sub_match< _Bi_iter > & | std::__unmatched_sub () |
bool | std::regex_traits< _Ch_type >::isctype (_Ch_type __c, char_class_type __f) const |
template<typename _BiIter > | |
bool | std::operator!= (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator!= (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator!= (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator!= (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator!= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator!= (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator!= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _Bi_iter , class _Alloc > | |
bool | std::operator!= (const match_results< _Bi_iter, _Alloc > &__m1, const match_results< _Bi_iter, _Alloc > &__m2) |
template<typename _BiIter > | |
bool | std::operator< (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator< (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , class _Ch_traits , class _Ch_alloc > | |
bool | std::operator< (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator< (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator< (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator< (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator< (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _Ch_type , typename _Ch_traits , typename _Bi_iter > | |
basic_ostream< _Ch_type, _Ch_traits > & | std::operator<< (basic_ostream< _Ch_type, _Ch_traits > &__os, const sub_match< _Bi_iter > &__m) |
template<typename _BiIter > | |
bool | std::operator<= (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator<= (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , class _Ch_traits , class _Ch_alloc > | |
bool | std::operator<= (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator<= (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator<= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator<= (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator<= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _BiIter > | |
bool | std::operator== (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator== (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator== (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator== (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator== (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator== (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator== (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _Bi_iter , typename _Alloc > | |
bool | std::operator== (const match_results< _Bi_iter, _Alloc > &__m1, const match_results< _Bi_iter, _Alloc > &__m2) |
template<typename _BiIter > | |
bool | std::operator> (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator> (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , class _Ch_traits , class _Ch_alloc > | |
bool | std::operator> (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator> (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator> (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator> (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator> (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _BiIter > | |
bool | std::operator>= (const sub_match< _BiIter > &__lhs, const sub_match< _BiIter > &__rhs) |
template<typename _Bi_iter , typename _Ch_traits , typename _Ch_alloc > | |
bool | std::operator>= (const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter , class _Ch_traits , class _Ch_alloc > | |
bool | std::operator>= (const sub_match< _Bi_iter > &__lhs, const __sub_match_string< _Bi_iter, _Ch_traits, _Ch_alloc > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator>= (typename iterator_traits< _Bi_iter >::value_type const *__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator>= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const *__rhs) |
template<typename _Bi_iter > | |
bool | std::operator>= (typename iterator_traits< _Bi_iter >::value_type const &__lhs, const sub_match< _Bi_iter > &__rhs) |
template<typename _Bi_iter > | |
bool | std::operator>= (const sub_match< _Bi_iter > &__lhs, typename iterator_traits< _Bi_iter >::value_type const &__rhs) |
template<typename _Ch_type , typename _Rx_traits > | |
void | std::swap (basic_regex< _Ch_type, _Rx_traits > &__lhs, basic_regex< _Ch_type, _Rx_traits > &__rhs) |
template<typename _Bi_iter , typename _Alloc > | |
void | std::swap (match_results< _Bi_iter, _Alloc > &__lhs, match_results< _Bi_iter, _Alloc > &__rhs) |
int | std::regex_traits< _Ch_type >::value (_Ch_type __ch, int __radix) const |
Matching, Searching, and Replacing | |
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_match (_Bi_iter __s, _Bi_iter __e, match_results< _Bi_iter, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits > | |
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) |
template<typename _Ch_type , typename _Alloc , typename _Rx_traits > | |
bool | std::regex_match (const _Ch_type *__s, match_results< const _Ch_type *, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
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, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Ch_type , class _Rx_traits > | |
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) |
template<typename _Ch_traits , typename _Str_allocator , typename _Ch_type , typename _Rx_traits > | |
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) |
template<typename _Bi_iter , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
bool | std::regex_search (_Bi_iter __first, _Bi_iter __last, match_results< _Bi_iter, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__re, regex_constants::match_flag_type __flags=regex_constants::match_default) |
template<typename _Bi_iter , typename _Ch_type , typename _Rx_traits > | |
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) |
template<typename _Ch_type , class _Alloc , class _Rx_traits > | |
bool | std::regex_search (const _Ch_type *__s, match_results< const _Ch_type *, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Ch_type , typename _Rx_traits > | |
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) |
template<typename _Ch_traits , typename _String_allocator , typename _Ch_type , typename _Rx_traits > | |
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) |
template<typename _Ch_traits , typename _Ch_alloc , typename _Alloc , typename _Ch_type , typename _Rx_traits > | |
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, _Alloc > &__m, const basic_regex< _Ch_type, _Rx_traits > &__e, regex_constants::match_flag_type __f=regex_constants::match_default) |
template<typename _Out_iter , typename _Bi_iter , typename _Rx_traits , typename _Ch_type > | |
_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) |
template<typename _Rx_traits , typename _Ch_type > | |
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) |
5.1 Regular Expression Syntax Options | |
enum | std::regex_constants::__syntax_option { _S_icase, _S_nosubs, _S_optimize, _S_collate, _S_ECMAScript, _S_basic, _S_extended, _S_awk, _S_grep, _S_egrep, _S_syntax_last } |
typedef unsigned int | std::regex_constants::syntax_option_type |
constexpr syntax_option_type | std::regex_constants::icase |
constexpr syntax_option_type | std::regex_constants::nosubs |
constexpr syntax_option_type | std::regex_constants::optimize |
constexpr syntax_option_type | std::regex_constants::collate |
constexpr syntax_option_type | std::regex_constants::ECMAScript |
constexpr syntax_option_type | std::regex_constants::basic |
constexpr syntax_option_type | std::regex_constants::extended |
constexpr syntax_option_type | std::regex_constants::awk |
constexpr syntax_option_type | std::regex_constants::grep |
constexpr syntax_option_type | std::regex_constants::egrep |
5.2 Matching Rules | |
Matching a regular expression against a sequence of characters [first, last) proceeds according to the rules of the grammar specified for the regular expression object, modified according to the effects listed below for any bitmask elements set. | |
enum | std::regex_constants::__match_flag { _S_not_bol, _S_not_eol, _S_not_bow, _S_not_eow, _S_any, _S_not_null, _S_continuous, _S_prev_avail, _S_sed, _S_no_copy, _S_first_only, _S_match_flag_last } |
typedef std::bitset< _S_match_flag_last > | std::regex_constants::match_flag_type |
constexpr match_flag_type | std::regex_constants::match_default |
constexpr match_flag_type | std::regex_constants::match_not_bol |
constexpr match_flag_type | std::regex_constants::match_not_eol |
constexpr match_flag_type | std::regex_constants::match_not_bow |
constexpr match_flag_type | std::regex_constants::match_not_eow |
constexpr match_flag_type | std::regex_constants::match_any |
constexpr match_flag_type | std::regex_constants::match_not_null |
constexpr match_flag_type | std::regex_constants::match_continuous |
constexpr match_flag_type | std::regex_constants::match_prev_avail |
constexpr match_flag_type | std::regex_constants::format_default |
constexpr match_flag_type | std::regex_constants::format_sed |
constexpr match_flag_type | std::regex_constants::format_no_copy |
constexpr match_flag_type | std::regex_constants::format_first_only |
5.3 Error Types | |
enum | std::regex_constants::error_type { _S_error_collate, _S_error_ctype, _S_error_escape, _S_error_backref, _S_error_brack, _S_error_paren, _S_error_brace, _S_error_badbrace, _S_error_range, _S_error_space, _S_error_badrepeat, _S_error_complexity, _S_error_stack, _S_error_last } |
constexpr error_type | std::regex_constants::error_collate (_S_error_collate) |
constexpr error_type | std::regex_constants::error_ctype (_S_error_ctype) |
constexpr error_type | std::regex_constants::error_escape (_S_error_escape) |
constexpr error_type | std::regex_constants::error_backref (_S_error_backref) |
constexpr error_type | std::regex_constants::error_brack (_S_error_brack) |
constexpr error_type | std::regex_constants::error_paren (_S_error_paren) |
constexpr error_type | std::regex_constants::error_brace (_S_error_brace) |
constexpr error_type | std::regex_constants::error_badbrace (_S_error_badbrace) |
constexpr error_type | std::regex_constants::error_range (_S_error_range) |
constexpr error_type | std::regex_constants::error_space (_S_error_space) |
constexpr error_type | std::regex_constants::error_badrepeat (_S_error_badrepeat) |
constexpr error_type | std::regex_constants::error_complexity (_S_error_complexity) |
constexpr error_type | std::regex_constants::error_stack (_S_error_stack) |
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 std::bitset<_S_match_flag_last> std::regex_constants::match_flag_type |
This is a bitmask type indicating regex matching rules.
The match_flag_type
is implementation defined but it is valid to perform bitwise operations on these values and expect the right thing to happen.
Definition at line 198 of file regex_constants.h.
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 unsigned int std::regex_constants::syntax_option_type |
This is a bitmask type indicating how to interpret the regex.
The syntax_option_type
is implementation defined but it is valid to perform bitwise operations on these values and expect the right thing to happen.
A valid value of type syntax_option_type shall have exactly one of the elements ECMAScript
, basic
, extended
, awk
, grep
, egrep
set.
Definition at line 80 of file regex_constants.h.
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 |
This is a bitmask type indicating regex matching rules.
The match_flag_type
is implementation defined but it is valid to perform bitwise operations on these values and expect the right thing to happen.
Definition at line 175 of file regex_constants.h.
This is a bitmask type indicating how to interpret the regex.
The syntax_option_type
is implementation defined but it is valid to perform bitwise operations on these values and expect the right thing to happen.
A valid value of type syntax_option_type shall have exactly one of the elements ECMAScript
, basic
, extended
, awk
, grep
, egrep
set.
Definition at line 54 of file regex_constants.h.
The expression contained an invalid collating element name.
Definition at line 49 of file regex_error.h.
constexpr error_type std::regex_constants::error_backref | ( | _S_error_backref | ) |
The expression contained an invalid back reference.
constexpr error_type std::regex_constants::error_badbrace | ( | _S_error_badbrace | ) |
The expression contained an invalid range in a {} expression.
constexpr error_type std::regex_constants::error_badrepeat | ( | _S_error_badrepeat | ) |
One of *?+{ was not preceded by a valid regular expression.
constexpr error_type std::regex_constants::error_brace | ( | _S_error_brace | ) |
The expression contained mismatched { and }
constexpr error_type std::regex_constants::error_brack | ( | _S_error_brack | ) |
The expression contained mismatched [ and ].
constexpr error_type std::regex_constants::error_collate | ( | _S_error_collate | ) |
The expression contained an invalid collating element name.
constexpr error_type std::regex_constants::error_complexity | ( | _S_error_complexity | ) |
The complexity of an attempted match against a regular expression exceeded a pre-set level.
constexpr error_type std::regex_constants::error_ctype | ( | _S_error_ctype | ) |
The expression contained an invalid character class name.
constexpr error_type std::regex_constants::error_escape | ( | _S_error_escape | ) |
The expression contained an invalid escaped character, or a trailing escape.
constexpr error_type std::regex_constants::error_paren | ( | _S_error_paren | ) |
The expression contained mismatched ( and ).
constexpr error_type std::regex_constants::error_range | ( | _S_error_range | ) |
The expression contained an invalid character range, such as [b-a] in most encodings.
constexpr error_type std::regex_constants::error_space | ( | _S_error_space | ) |
There was insufficient memory to convert the expression into a finite state machine.
constexpr error_type std::regex_constants::error_stack | ( | _S_error_stack | ) |
There was insufficient memory to determine whether the regular expression could match the specified character sequence.
bool std::regex_traits< _Ch_type >::isctype | ( | _Ch_type | __c, |
char_class_type | __f | ||
) | const |
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. |
|
inline |
Tests the inequivalence of two regular expression submatches.
__lhs | First regular expression submatch. |
__rhs | Second regular expression submatch. |
Definition at line 868 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tests the ordering 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().
|
inline |
Tests the ordering 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 >::compare().
|
inline |
Tests the ordering of a regular expression submatch and a string.
__lhs | A regular expression submatch. |
__rhs | A string. |
Definition at line 1029 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::compare().
|
inline |
Tests the ordering of a string and a regular expression submatch.
__lhs | A string. |
__rhs | A regular expression submatch. |
Definition at line 1103 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
|
inline |
Tests the ordering of a string and a regular expression submatch.
__lhs | A string. |
__rhs | A regular expression submatch. |
Definition at line 1254 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
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 1334 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
Inserts a matched string into an output stream.
__os | The output stream. |
__m | A submatch string. |
Definition at line 1388 of file regex.h.
References std::sub_match< _BiIter >::str().
|
inline |
Tests the ordering of two regular expression submatches.
__lhs | First regular expression submatch. |
__rhs | Second regular expression submatch. |
Definition at line 890 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tests the equivalence of two regular expression submatches.
__lhs | First regular expression submatch. |
__rhs | Second regular expression submatch. |
Definition at line 857 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
Tests the equivalence of a string and a regular expression submatch.
__lhs | A string. |
__rhs | A regular expression submatch. |
Definition at line 930 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), and std::sub_match< _BiIter >::compare().
|
inline |
Tests the equivalence of a regular expression submatch and a string.
__lhs | A regular expression submatch. |
__rhs | A string. |
Definition at line 1004 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::c_str(), and std::sub_match< _BiIter >::compare().
|
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 1078 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
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 1152 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
Tests the equivalence of a string and a regular expression submatch.
__lhs | A string. |
__rhs | A regular expression submatch. |
Definition at line 1226 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
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 1306 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
Compares two match_results for equality.
Definition at line 1810 of file regex.h.
References std::match_results< _Bi_iter, _Alloc >::begin(), std::match_results< _Bi_iter, _Alloc >::empty(), std::match_results< _Bi_iter, _Alloc >::end(), std::equal(), std::match_results< _Bi_iter, _Alloc >::prefix(), std::match_results< _Bi_iter, _Alloc >::ready(), std::match_results< _Bi_iter, _Alloc >::size(), and std::match_results< _Bi_iter, _Alloc >::suffix().
|
inline |
Tests the ordering of two regular expression submatches.
__lhs | First regular expression submatch. |
__rhs | Second regular expression submatch. |
Definition at line 912 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tests the ordering of two regular expression submatches.
__lhs | First regular expression submatch. |
__rhs | Second regular expression submatch. |
Definition at line 901 of file regex.h.
References std::sub_match< _BiIter >::compare().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool std::regex_match | ( | _Bi_iter | __s, |
_Bi_iter | __e, | ||
match_results< _Bi_iter, _Alloc > & | __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 1878 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 1909 of file regex.h.
References std::regex_match().
|
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 1934 of file regex.h.
References std::regex_match().
|
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 1958 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_match().
|
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 1981 of file regex.h.
References std::regex_match().
|
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 2003 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_match().
|
inline |
__out | |
__first | |
__last | |
__e | |
__fmt | |
__flags |
an | exception of type regex_error. |
Definition at line 2162 of file regex.h.
Referenced by std::regex_replace().
|
inline |
__s | |
__e | |
__fmt | |
__flags |
s
with replacements.an | exception of type regex_error. |
Definition at line 2182 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().
|
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 2028 of file regex.h.
Referenced by std::regex_search().
|
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 2049 of file regex.h.
References std::regex_search().
|
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 2073 of file regex.h.
References std::regex_search().
|
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 2093 of file regex.h.
References std::regex_search().
|
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 2113 of file regex.h.
References std::regex_search().
|
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 2136 of file regex.h.
References std::basic_string< _CharT, _Traits, _Alloc >::begin(), std::basic_string< _CharT, _Traits, _Alloc >::end(), and std::regex_search().
|
inline |
Swaps the contents of two regular expression objects.
__lhs | First regular expression. |
__rhs | Second regular expression. |
Definition at line 722 of file regex.h.
References std::basic_regex< _Ch_type, _Rx_traits >::swap().
|
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 1848 of file regex.h.
References std::match_results< _Bi_iter, _Alloc >::swap().
int std::regex_traits< _Ch_type >::value | ( | _Ch_type | __ch, |
int | __radix | ||
) | const |
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 314 of file regex.h.
References std::hex(), and std::oct().
constexpr syntax_option_type std::regex_constants::awk |
Specifies that the grammar recognized by the regular expression engine is that used by POSIX utility awk in IEEE Std 1003.1-2001. This option is identical to syntax_option_type extended, except that C-style escape sequences are supported. These sequences are: \\, \a, \b, \f, \n, \r, \t , \v, \', ', and \ddd (where ddd is one, two, or three octal digits).
Definition at line 144 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::basic |
Specifies that the grammar recognized by the regular expression engine is that used by POSIX basic regular expressions in IEEE Std 1003.1-2001, Portable Operating System Interface (POSIX), Base Definitions and Headers, Section 9, Regular Expressions [IEEE, Information Technology – Portable Operating System Interface (POSIX), IEEE Standard 1003.1-2001].
Definition at line 126 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::collate |
Specifies that character ranges of the form [a-b] should be locale sensitive.
Definition at line 107 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::ECMAScript |
Specifies that the grammar recognized by the regular expression engine is that used by ECMAScript in ECMA-262 [Ecma International, ECMAScript Language Specification, Standard Ecma-262, third edition, 1999], as modified in section [28.13]. This grammar is similar to that defined in the PERL scripting language but extended with elements found in the POSIX regular expression grammar.
Definition at line 117 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::egrep |
Specifies that the grammar recognized by the regular expression engine is that used by POSIX utility grep when given the -E option in IEEE Std 1003.1-2001. This option is identical to syntax_option_type extended, except that newlines are treated as whitespace.
Definition at line 160 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::extended |
Specifies that the grammar recognized by the regular expression engine is that used by POSIX extended regular expressions in IEEE Std 1003.1-2001, Portable Operating System Interface (POSIX), Base Definitions and Headers, Section 9, Regular Expressions.
Definition at line 134 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::format_default |
When a regular expression match is to be replaced by a new string, the new string is constructed using the rules used by the ECMAScript replace function in ECMA- 262 [Ecma International, ECMAScript Language Specification, Standard Ecma-262, third edition, 1999], part 15.5.4.11 String.prototype.replace. In addition, during search and replace operations all non-overlapping occurrences of the regular expression are located and replaced, and sections of the input that did not match the expression are copied unchanged to the output string.
Format strings (from ECMA-262 [15.5.4.11]):
Definition at line 280 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::format_first_only |
When specified during a search and replace operation, only the first occurrence of the regular expression shall be replaced.
Definition at line 301 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::format_no_copy |
During a search and replace operation, sections of the character container sequence being searched that do not match the regular expression shall not be copied to the output string.
Definition at line 295 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::format_sed |
When a regular expression match is to be replaced by a new string, the new string is constructed using the rules used by the POSIX sed utility in IEEE Std 1003.1- 2001 [IEEE, Information Technology – Portable Operating System Interface (POSIX), IEEE Standard 1003.1-2001].
Definition at line 288 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::grep |
Specifies that the grammar recognized by the regular expression engine is that used by POSIX utility grep in IEEE Std 1003.1-2001. This option is identical to syntax_option_type basic, except that newlines are treated as whitespace.
Definition at line 152 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::icase |
Specifies that the matching of regular expressions against a character sequence shall be performed without regard to case.
Definition at line 86 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_any |
If more than one match is possible then any match is an acceptable result.
Definition at line 235 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_continuous |
The expression only matches a sub-sequence that begins at first .
Definition at line 245 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_default |
The default matching rules.
Definition at line 203 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_not_bol |
The first character in the sequence [first, last) is treated as though it is not at the beginning of a line, so the character (^) in the regular expression shall not match [first, first).
Definition at line 210 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_not_bow |
The expression \b is not matched against the sub-sequence [first,first).
Definition at line 223 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_not_eol |
The last character in the sequence [first, last) is treated as though it is not at the end of a line, so the character ($) in the regular expression shall not match [last, last).
Definition at line 217 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_not_eow |
The expression \b should not be matched against the sub-sequence [last,last).
Definition at line 229 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_not_null |
The expression does not match an empty sequence.
Definition at line 240 of file regex_constants.h.
constexpr match_flag_type std::regex_constants::match_prev_avail |
–first is a valid iterator position. When this flag is set then the flags match_not_bol and match_not_bow are ignored by the regular expression algorithms 28.11 and iterators 28.12.
Definition at line 252 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::nosubs |
Specifies that when a regular expression is matched against a character container sequence, no sub-expression matches are to be stored in the supplied match_results structure.
Definition at line 93 of file regex_constants.h.
constexpr syntax_option_type std::regex_constants::optimize |
Specifies that the regular expression engine should pay more attention to the speed with which regular expressions are matched, and less to the speed with which regular expression objects are constructed. Otherwise it has no detectable effect on the program output.
Definition at line 101 of file regex_constants.h.