libstdc++
|
5.1 Regular Expression Syntax Options | |
enum | __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 } |
enum | syntax_option_type : unsigned int { icase, nosubs, optimize, collate, ECMAScript, basic, extended, awk, grep, egrep } |
constexpr syntax_option_type | operator& (syntax_option_type __a, syntax_option_type __b) |
constexpr syntax_option_type | operator| (syntax_option_type __a, syntax_option_type __b) |
constexpr syntax_option_type | operator^ (syntax_option_type __a, syntax_option_type __b) |
constexpr syntax_option_type | operator~ (syntax_option_type __a) |
syntax_option_type & | operator&= (syntax_option_type &__a, syntax_option_type __b) |
syntax_option_type & | operator|= (syntax_option_type &__a, syntax_option_type __b) |
syntax_option_type & | operator^= (syntax_option_type &__a, syntax_option_type __b) |
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 | __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 } |
enum | match_flag_type : unsigned int { match_default, match_not_bol, match_not_eol, match_not_bow, match_not_eow, match_any, match_not_null, match_continuous, match_prev_avail, format_default, format_sed, format_no_copy, format_first_only } |
constexpr match_flag_type | operator& (match_flag_type __a, match_flag_type __b) |
constexpr match_flag_type | operator| (match_flag_type __a, match_flag_type __b) |
constexpr match_flag_type | operator^ (match_flag_type __a, match_flag_type __b) |
constexpr match_flag_type | operator~ (match_flag_type __a) |
match_flag_type & | operator&= (match_flag_type &__a, match_flag_type __b) |
match_flag_type & | operator|= (match_flag_type &__a, match_flag_type __b) |
match_flag_type & | operator^= (match_flag_type &__a, match_flag_type __b) |
5.3 Error Types | |
enum | 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 } |
constexpr error_type | error_collate (_S_error_collate) |
constexpr error_type | error_ctype (_S_error_ctype) |
constexpr error_type | error_escape (_S_error_escape) |
constexpr error_type | error_backref (_S_error_backref) |
constexpr error_type | error_brack (_S_error_brack) |
constexpr error_type | error_paren (_S_error_paren) |
constexpr error_type | error_brace (_S_error_brace) |
constexpr error_type | error_badbrace (_S_error_badbrace) |
constexpr error_type | error_range (_S_error_range) |
constexpr error_type | error_space (_S_error_space) |
constexpr error_type | error_badrepeat (_S_error_badrepeat) |
constexpr error_type | error_complexity (_S_error_complexity) |
constexpr error_type | error_stack (_S_error_stack) |
ISO C++-0x entities sub namespace for regex.
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 213 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.
enum std::regex_constants::match_flag_type : unsigned int |
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 236 of file regex_constants.h.
enum std::regex_constants::syntax_option_type : unsigned int |
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.
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.
|
inline |
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 164 of file regex_constants.h.
|
inline |
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 343 of file regex_constants.h.
|
inline |
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 189 of file regex_constants.h.
|
inline |
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 368 of file regex_constants.h.
|
inline |
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 178 of file regex_constants.h.
|
inline |
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 357 of file regex_constants.h.
|
inline |
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 197 of file regex_constants.h.
|
inline |
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 376 of file regex_constants.h.
|
inline |
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 171 of file regex_constants.h.
|
inline |
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 350 of file regex_constants.h.
|
inline |
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 193 of file regex_constants.h.
|
inline |
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 372 of file regex_constants.h.
|
inline |
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 185 of file regex_constants.h.
|
inline |
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 364 of file regex_constants.h.