Improve vacpp support.
[boost.git] / boost / libs / regex / doc / error_type.html
blob6ca143830cabd52abd6fbfb13fff67e9173239d2
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html>
3 <head>
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>
7 <body>
8 <P>
9 <TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="0">
10 <TR>
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>
13 </td>
14 <TD width="353">
15 <H1 align="center">Boost.Regex</H1>
16 <H2 align="center">error_type</H2>
17 </TD>
18 <td width="50">
19 <h3><A href="index.html"><IMG height="45" alt="Boost.Regex Index" src="uarrow.gif" width="43" border="0"></A></h3>
20 </td>
21 </TR>
22 </TABLE>
23 </P>
24 <HR>
25 <H3>Contents</H3>
26 <dl class="index">
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>
31 <pre>
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
52 } // namespace boost
53 </pre>
54 <P>&nbsp;</P>
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>
58 <P>
59 <TABLE id="Table2" cellSpacing="1" cellPadding="1" width="100%" border="1">
60 <TR>
61 <TD><STRONG>Constant</STRONG></TD>
62 <TD><STRONG>Meaning</STRONG></TD>
63 </TR>
64 <TR>
65 <TD>error_collate</TD>
66 <TD>An invalid collating element was specified in a [[.name.]] block.</TD>
67 </TR>
68 <TR>
69 <TD>error_ctype</TD>
70 <TD>An invalid character class name was specified in a [[:name:]] block.</TD>
71 </TR>
72 <TR>
73 <TD>error_escape</TD>
74 <TD>An invalid or trailing escape was encountered.</TD>
75 </TR>
76 <TR>
77 <TD>error_backref</TD>
78 <TD>A back-reference to a non-existant marked sub-expression was encountered.</TD>
79 </TR>
80 <TR>
81 <TD>error_brack</TD>
82 <TD>An invalid character set [...] was encountered.</TD>
83 </TR>
84 <TR>
85 <TD>error_paren</TD>
86 <TD>
87 <P>Mismatched '(' and ')'.</P>
88 </TD>
89 </TR>
90 <TR>
91 <TD>error_brace</TD>
92 <TD>Mismatched '{' and '}'.</TD>
93 </TR>
94 <TR>
95 <TD>error_badbrace</TD>
96 <TD>Invalid contents of a {...} block.</TD>
97 </TR>
98 <TR>
99 <TD>error_range</TD>
100 <TD>A character range was invalid, for example [d-a].</TD>
101 </TR>
102 <TR>
103 <TD>error_space</TD>
104 <TD>Out of memory.</TD>
105 </TR>
106 <TR>
107 <TD>error_badrepeat</TD>
108 <TD>An attempt to repeat something that can not be repeated - for example a*+</TD>
109 </TR>
110 <TR>
111 <TD>error_complexity</TD>
112 <TD>The expression became too complex to handle.</TD>
113 </TR>
114 <TR>
115 <TD>error_stack</TD>
116 <TD>Out of program stack space.</TD>
117 </TR>
118 <TR>
119 <TD>error_bad_pattern</TD>
120 <TD>Other unspecified errors.</TD>
121 </TR>
122 </TABLE>
123 </P>
124 <H3><A name="examples"></A>
125 <HR>
126 </H3>
127 <p>Revised&nbsp;
128 <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
129 24 June 2004&nbsp;
130 <!--webbot bot="Timestamp" endspan i-checksum="39359" -->
131 </p>
132 <p><i>© Copyright John Maddock&nbsp;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>
137 </body>
138 </html>