1 | /* |
2 | * |
3 | * Copyright (c) 2003-2005 |
4 | * John Maddock |
5 | * |
6 | * Use, modification and distribution are subject to the |
7 | * Boost Software License, Version 1.0. (See accompanying file |
8 | * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
9 | * |
10 | */ |
11 | |
12 | /* |
13 | * LOCATION: see http://www.boost.org for most recent version. |
14 | * FILE error_type.hpp |
15 | * VERSION see <boost/version.hpp> |
16 | * DESCRIPTION: Declares regular expression error type enumerator. |
17 | */ |
18 | |
19 | #ifndef BOOST_REGEX_ERROR_TYPE_HPP |
20 | #define BOOST_REGEX_ERROR_TYPE_HPP |
21 | |
22 | #ifdef __cplusplus |
23 | namespace boost{ |
24 | #endif |
25 | |
26 | #ifdef __cplusplus |
27 | namespace regex_constants{ |
28 | |
29 | enum error_type{ |
30 | |
31 | error_ok = 0, /* not used */ |
32 | error_no_match = 1, /* not used */ |
33 | error_bad_pattern = 2, |
34 | error_collate = 3, |
35 | error_ctype = 4, |
36 | error_escape = 5, |
37 | error_backref = 6, |
38 | error_brack = 7, |
39 | error_paren = 8, |
40 | error_brace = 9, |
41 | error_badbrace = 10, |
42 | error_range = 11, |
43 | error_space = 12, |
44 | error_badrepeat = 13, |
45 | error_end = 14, /* not used */ |
46 | error_size = 15, |
47 | error_right_paren = 16, /* not used */ |
48 | error_empty = 17, |
49 | error_complexity = 18, |
50 | error_stack = 19, |
51 | error_perl_extension = 20, |
52 | error_unknown = 21 |
53 | }; |
54 | |
55 | } |
56 | } |
57 | #endif /* __cplusplus */ |
58 | |
59 | #endif |
60 | |