1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
4 <title>Boost.Regex: error_type
</title>
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1">
6 <LINK href=
"../../../boost.css" type=
"text/css" rel=
"stylesheet"></head>
9 <TABLE id=
"Table1" cellSpacing=
"1" cellPadding=
"1" width=
"100%" border=
"0">
11 <td vAlign=
"top" width=
"300">
12 <h3><A href=
"../../../index.htm"><IMG height=
"86" alt=
"C++ Boost" src=
"../../../boost.png" width=
"277" border=
"0"></A></h3>
15 <H1 align=
"center">Boost.Regex
</H1>
16 <H2 align=
"center">error_type
</H2>
19 <h3><A href=
"index.html"><IMG height=
"45" alt=
"Boost.Regex Index" src=
"uarrow.gif" width=
"43" border=
"0"></A></h3>
27 <dt><A href=
"#synopsis">Synopsis
</A> <dt><a href=
"#description">Description
</a></dt></dl>
28 <H3><A name=
"synopsis"></A>Synopsis
</H3>
29 <P>Type error type represents the different types of errors that can be raised by
30 the library when parsing a regular expression.
</P>
32 namespace boost{ namespace regex_constants{
34 typedef implementation-specific-type error_type;
36 static const error_type error_collate;
37 static const error_type error_ctype;
38 static const error_type error_escape;
39 static const error_type error_backref;
40 static const error_type error_brack;
41 static const error_type error_paren;
42 static const error_type error_brace;
43 static const error_type error_badbrace;
44 static const error_type error_range;
45 static const error_type error_space;
46 static const error_type error_badrepeat;
47 static const error_type error_complexity;
48 static const error_type error_stack;
49 static const error_type error_bad_pattern;
51 } // namespace regex_constants
55 <H3><A name=
"description"></A>Description
</H3>
56 <P>The type error_type is an implementation-specific enumeration type that may
57 take one of the following values:
</P>
59 <TABLE id=
"Table2" cellSpacing=
"1" cellPadding=
"1" width=
"100%" border=
"1">
61 <TD><STRONG>Constant
</STRONG></TD>
62 <TD><STRONG>Meaning
</STRONG></TD>
65 <TD>error_collate
</TD>
66 <TD>An invalid collating element was specified in a [[.name.]] block.
</TD>
70 <TD>An invalid character class name was specified in a [[:name:]] block.
</TD>
74 <TD>An invalid or trailing escape was encountered.
</TD>
77 <TD>error_backref
</TD>
78 <TD>A back-reference to a non-existant marked sub-expression was encountered.
</TD>
82 <TD>An invalid character set [...] was encountered.
</TD>
87 <P>Mismatched '(' and ')'.
</P>
92 <TD>Mismatched '{' and '}'.
</TD>
95 <TD>error_badbrace
</TD>
96 <TD>Invalid contents of a {...} block.
</TD>
100 <TD>A character range was invalid, for example [d-a].
</TD>
104 <TD>Out of memory.
</TD>
107 <TD>error_badrepeat
</TD>
108 <TD>An attempt to repeat something that can not be repeated - for example a*+
</TD>
111 <TD>error_complexity
</TD>
112 <TD>The expression became too complex to handle.
</TD>
116 <TD>Out of program stack space.
</TD>
119 <TD>error_bad_pattern
</TD>
120 <TD>Other unspecified errors.
</TD>
124 <H3><A name=
"examples"></A>
128 <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
130 <!--webbot bot="Timestamp" endspan i-checksum="39359" -->
132 <p><i>© Copyright John Maddock
1998-
133 <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan --> 2004<!--webbot bot="Timestamp" endspan i-checksum="39359" --></i></p>
134 <P><I>Use, modification and distribution are subject to the Boost Software License,
135 Version
1.0. (See accompanying file
<A href=
"../../../LICENSE_1_0.txt">LICENSE_1_0.txt
</A>
136 or copy at
<A href=
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt
</A>)
</I></P>