Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

Type error_type

boost::xpressive::regex_constants::error_type

Synopsis

// In header: <boost/xpressive/regex_constants.hpp>



enum error_type { error_collate, error_ctype, error_escape, error_subreg, 
                  error_brack, error_paren, error_brace, error_badbrace, 
                  error_range, error_space, error_badrepeat, error_complexity, 
                  error_stack, error_badref, error_badmark, 
                  error_badlookbehind, error_badrule, error_badarg, 
                  error_badattr, error_internal };

Description

Error codes used by the regex_error type

error_collate

The expression contained an invalid collating element name.

error_ctype

The expression contained an invalid character class name.

error_escape

The expression contained an invalid escaped character, or a trailing escape.

error_subreg

The expression contained an invalid back-reference.

error_brack

The expression contained mismatched [ and ].

error_paren

The expression contained mismatched ( and ).

error_brace

The expression contained mismatched { and }.

error_badbrace

The expression contained an invalid range in a {} expression.

error_range

The expression contained an invalid character range, for example [b-a].

error_space

There was insufficient 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 against a regular expression exceeded a pre-set level.

error_stack

There was insufficient memory to determine whether the regular expression could match the specified character sequence.

error_badref

An nested regex is uninitialized.

error_badmark

An invalid use of a named capture.

error_badlookbehind

An attempt to create a variable-width look-behind assertion was detected.

error_badrule

An invalid use of a rule was detected.

error_badarg

An argument to an action was unbound.

error_badattr

Tried to read from an uninitialized attribute.

error_internal

An internal error has occured.


PrevUpHomeNext