Regex syntax error exceptions. More...
#include <error.h>
Public Member Functions | |
regex_error (regex_error_type code, const std::string &pattern, size_t pos=0) | |
Construct regex error info. More... | |
regex_error (regex_error_type code, const char *pattern, size_t pos=0) | |
Construct regex error info. More... | |
regex_error (const char *message, const std::string &pattern, size_t pos=0) | |
Construct regex error info. More... | |
regex_error (const char *message, const char *pattern, size_t pos=0) | |
Construct regex error info. More... | |
regex_error_type | code () const |
Returns error code, a reflex::regex_error_type constant. More... | |
size_t | pos () const |
Returns position of the error in the regex. More... | |
Static Public Attributes | |
static const regex_error_type | mismatched_parens = 0 |
mismatched ( ) More... | |
static const regex_error_type | mismatched_braces = 1 |
mismatched { } More... | |
static const regex_error_type | mismatched_brackets = 2 |
mismatched [ ] More... | |
static const regex_error_type | mismatched_quotation = 3 |
mismatched \Q...\E or "..." quotation More... | |
static const regex_error_type | empty_expression = 4 |
regex (sub)expression should not be empty More... | |
static const regex_error_type | empty_class = 5 |
class [...] is empty, e.g. [a&&[b]] More... | |
static const regex_error_type | invalid_class = 6 |
invalid character class name or code point More... | |
static const regex_error_type | invalid_class_range = 7 |
invalid character class range, e.g. [Z-A] More... | |
static const regex_error_type | invalid_escape = 8 |
invalid escape character More... | |
static const regex_error_type | invalid_anchor = 9 |
invalid anchor More... | |
static const regex_error_type | invalid_repeat = 10 |
invalid repeat range, e.g. {10,1} More... | |
static const regex_error_type | invalid_quantifier = 11 |
invalid lazy/possessive quantifier More... | |
static const regex_error_type | invalid_modifier = 12 |
invalid (?ismx:) modifier More... | |
static const regex_error_type | invalid_collating = 13 |
invalid collating element [[.name.]] More... | |
static const regex_error_type | invalid_backreference = 14 |
invalid backreference More... | |
static const regex_error_type | invalid_syntax = 15 |
invalid regex syntax More... | |
static const regex_error_type | exceeds_length = 16 |
regex exceeds length limit (reflex::Pattern class only) More... | |
static const regex_error_type | exceeds_limits = 17 |
regex exceeds complexity limits (reflex::Pattern class only) More... | |
static const regex_error_type | undefined_name = 18 |
undefined macro name (reflex tool only) More... | |
static const regex_error_type | cannot_save_tables = 19 |
Static Private Member Functions | |
static std::string | regex_error_message_code (regex_error_type code, const char *pattern, size_t pos) |
static std::string | regex_error_message (const char *message, const char *pattern, size_t pos) |
static size_t | displen (const char *s, size_t k) |
static const char * | disppos (const char *s, size_t k) |
Private Attributes | |
regex_error_type | code_ |
size_t | pos_ |
Regex syntax error exceptions.
|
inline |
Construct regex error info.
|
inline |
Construct regex error info.
|
inline |
Construct regex error info.
|
inline |
Construct regex error info.
|
inline |
Returns error code, a reflex::regex_error_type constant.
|
staticprivate |
|
staticprivate |
|
inline |
Returns position of the error in the regex.
|
staticprivate |
|
staticprivate |
|
static |
cannot save tables file (reflex tool only)
|
private |
|
static |
class [...]
is empty, e.g. [a&&[b]]
|
static |
regex (sub)expression should not be empty
|
static |
regex exceeds length limit (reflex::Pattern class only)
|
static |
regex exceeds complexity limits (reflex::Pattern class only)
|
static |
invalid anchor
|
static |
invalid backreference
|
static |
invalid character class name or code point
|
static |
invalid character class range, e.g. [Z-A]
|
static |
invalid collating element [[.name.]]
|
static |
invalid escape character
|
static |
invalid (?ismx:)
modifier
|
static |
invalid lazy/possessive quantifier
|
static |
invalid repeat range, e.g. {10,1}
|
static |
invalid regex syntax
|
static |
mismatched { }
|
static |
mismatched [ ]
|
static |
mismatched ( )
|
static |
mismatched \Q...\E
or "..."
quotation
|
private |
|
static |
undefined macro name (reflex tool only)