Namespaces
Variants
Views
Actions

std::regex_constants::error_type

From cppreference.com
< cpp‎ | regex
Revision as of 13:54, 30 December 2012 by Nate (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <regex>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
typedef /*implementation defined*/ error_type;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td >
static constexpr error_type error_collate = /*unspecified*/;

static constexpr error_type error_ctype = /*unspecified*/;
static constexpr error_type error_escape = /*unspecified*/;
static constexpr error_type error_backref = /*unspecified*/;
static constexpr error_type error_brack = /*unspecified*/;
static constexpr error_type error_paren = /*unspecified*/;
static constexpr error_type error_brace = /*unspecified*/;
static constexpr error_type error_badbrace = /*unspecified*/;
static constexpr error_type error_range = /*unspecified*/;
static constexpr error_type error_space = /*unspecified*/;
static constexpr error_type error_badrepeat = /*unspecified*/;
static constexpr error_type error_complexity = /*unspecified*/;

static constexpr error_type error_stack = /*unspecified*/;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

The error_type is a type that describes errors that may occur during regular expression parsing.

Constants

Constant Explanation
error_collate the expression contains an invalid collating element name
error_ctype the expression contains an invalid character class name
error_escape the expression contains an invalid escaped character or a trailing escape
error_backref the expression contains an invalid back reference
error_brack the expression contains mismatched square brackets ('[' and ']')
error_paren the expression contains mismatched parentheses ('(' and ')')
error_brace the expression contains mismatched curly braces ('{' and '}')
error_badbrace the expression contains an invalid range in a {} expression
error_range the expression contains an invalid character range (e.g. [b-a])
error_space there was not enough memory to convert the expression into a finite state machine
error_badrepeat one of *?+{ was not preceded by a valid regular expression
error_complexity the complexity of an attempted match exceeded a predefined level
error_stack there was not enough memory to perform a match

See also

Template:cpp/regex/dcl list regex error