reflex::regex_error Class Reference

updated Mon Apr 10 2017 by Robert van Engelen
 
Public Member Functions | Static Public Attributes | Static Private Member Functions | Private Attributes | List of all members
reflex::regex_error Class Reference

Regex syntax error exceptions. More...

#include <error.h>

Inheritance diagram for reflex::regex_error:
Inheritance graph
[legend]
Collaboration diagram for reflex::regex_error:
Collaboration graph
[legend]

Public Member Functions

 regex_error (regex_error_type code, const char *pattern, size_t pos=0)
 
regex_error_type code () const
 
size_t pos () const
 

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 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_syntax = 13
 invalid regex syntax More...
 
static const regex_error_type exceeds_limits = 14
 regex exceeds complexity limits (reflex::Pattern class only) More...
 
static const regex_error_type undefined_name = 15
 undefined macro name (reflex tool only) More...
 

Static Private Member Functions

static std::string regex_error_message (regex_error_type code, const char *pattern, size_t pos)
 

Private Attributes

regex_error_type code_
 
size_t pos_
 

Detailed Description

Regex syntax error exceptions.

Constructor & Destructor Documentation

reflex::regex_error::regex_error ( regex_error_type  code,
const char *  pattern,
size_t  pos = 0 
)
inline

Member Function Documentation

regex_error_type reflex::regex_error::code ( ) const
inline
size_t reflex::regex_error::pos ( ) const
inline
static std::string reflex::regex_error::regex_error_message ( regex_error_type  code,
const char *  pattern,
size_t  pos 
)
staticprivate

Member Data Documentation

regex_error_type reflex::regex_error::code_
private
const regex_error_type reflex::regex_error::empty_class = 5
static

class [...] is empty, e.g. [a&&[b]]

const regex_error_type reflex::regex_error::empty_expression = 4
static

regex (sub)expression should not be empty

const regex_error_type reflex::regex_error::exceeds_limits = 14
static

regex exceeds complexity limits (reflex::Pattern class only)

const regex_error_type reflex::regex_error::invalid_anchor = 9
static

invalid anchor

const regex_error_type reflex::regex_error::invalid_class = 6
static

invalid character class name or code point

const regex_error_type reflex::regex_error::invalid_class_range = 7
static

invalid class range, e.g. [Z-A]

const regex_error_type reflex::regex_error::invalid_escape = 8
static

invalid escape character

const regex_error_type reflex::regex_error::invalid_modifier = 12
static

invalid (?ismx:) modifier

const regex_error_type reflex::regex_error::invalid_quantifier = 11
static

invalid lazy/possessive quantifier

const regex_error_type reflex::regex_error::invalid_repeat = 10
static

invalid repeat range, e.g. {10,1}

const regex_error_type reflex::regex_error::invalid_syntax = 13
static

invalid regex syntax

const regex_error_type reflex::regex_error::mismatched_braces = 1
static

mismatched { }

const regex_error_type reflex::regex_error::mismatched_brackets = 2
static

mismatched [ ]

const regex_error_type reflex::regex_error::mismatched_parens = 0
static

mismatched ( )

const regex_error_type reflex::regex_error::mismatched_quotation = 3
static

mismatched \Q...\E or "..." quotation

size_t reflex::regex_error::pos_
private
const regex_error_type reflex::regex_error::undefined_name = 15
static

undefined macro name (reflex tool only)


The documentation for this class was generated from the following file: