Chris@16
|
1 // (C) Copyright John Maddock 2005.
|
Chris@16
|
2 // Use, modification and distribution are subject to the
|
Chris@16
|
3 // Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5
|
Chris@16
|
6 #ifndef BOOST_TR1_REGEX_HPP_INCLUDED
|
Chris@16
|
7 # define BOOST_TR1_REGEX_HPP_INCLUDED
|
Chris@16
|
8 # include <boost/tr1/detail/config.hpp>
|
Chris@16
|
9
|
Chris@16
|
10 #ifdef BOOST_HAS_TR1_REGEX
|
Chris@16
|
11
|
Chris@16
|
12 # if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
|
Chris@16
|
13 # include_next BOOST_TR1_HEADER(regex)
|
Chris@16
|
14 # else
|
Chris@16
|
15 # include <boost/tr1/detail/config_all.hpp>
|
Chris@16
|
16 # include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(regex))
|
Chris@16
|
17 # endif
|
Chris@16
|
18
|
Chris@16
|
19 #else
|
Chris@16
|
20
|
Chris@16
|
21 #include <boost/regex.hpp>
|
Chris@16
|
22
|
Chris@16
|
23 namespace std{ namespace tr1{
|
Chris@16
|
24
|
Chris@16
|
25 // [7.5] Regex constants
|
Chris@16
|
26 namespace regex_constants {
|
Chris@16
|
27
|
Chris@16
|
28 using ::boost::regex_constants::syntax_option_type;
|
Chris@16
|
29 using ::boost::regex_constants::icase;
|
Chris@16
|
30 using ::boost::regex_constants::nosubs;
|
Chris@16
|
31 using ::boost::regex_constants::optimize;
|
Chris@16
|
32 using ::boost::regex_constants::collate;
|
Chris@16
|
33 using ::boost::regex_constants::ECMAScript;
|
Chris@16
|
34 using ::boost::regex_constants::basic;
|
Chris@16
|
35 using ::boost::regex_constants::extended;
|
Chris@16
|
36 using ::boost::regex_constants::awk;
|
Chris@16
|
37 using ::boost::regex_constants::grep;
|
Chris@16
|
38 using ::boost::regex_constants::egrep;
|
Chris@16
|
39
|
Chris@16
|
40 using ::boost::regex_constants::match_flag_type;
|
Chris@16
|
41 using ::boost::regex_constants::match_default;
|
Chris@16
|
42 using ::boost::regex_constants::match_not_bol;
|
Chris@16
|
43 using ::boost::regex_constants::match_not_eol;
|
Chris@16
|
44 using ::boost::regex_constants::match_not_bow;
|
Chris@16
|
45 using ::boost::regex_constants::match_not_eow;
|
Chris@16
|
46 using ::boost::regex_constants::match_any;
|
Chris@16
|
47 using ::boost::regex_constants::match_not_null;
|
Chris@16
|
48 using ::boost::regex_constants::match_continuous;
|
Chris@16
|
49 using ::boost::regex_constants::match_prev_avail;
|
Chris@16
|
50 using ::boost::regex_constants::format_default;
|
Chris@16
|
51 using ::boost::regex_constants::format_sed;
|
Chris@16
|
52 using ::boost::regex_constants::format_no_copy;
|
Chris@16
|
53 using ::boost::regex_constants::format_first_only;
|
Chris@16
|
54
|
Chris@16
|
55 using ::boost::regex_constants::error_type;
|
Chris@16
|
56 using ::boost::regex_constants::error_collate;
|
Chris@16
|
57 using ::boost::regex_constants::error_ctype;
|
Chris@16
|
58 using ::boost::regex_constants::error_escape;
|
Chris@16
|
59 using ::boost::regex_constants::error_backref;
|
Chris@16
|
60 using ::boost::regex_constants::error_brack;
|
Chris@16
|
61 using ::boost::regex_constants::error_paren;
|
Chris@16
|
62 using ::boost::regex_constants::error_brace;
|
Chris@16
|
63 using ::boost::regex_constants::error_badbrace;
|
Chris@16
|
64 using ::boost::regex_constants::error_range;
|
Chris@16
|
65 using ::boost::regex_constants::error_space;
|
Chris@16
|
66 using ::boost::regex_constants::error_badrepeat;
|
Chris@16
|
67 using ::boost::regex_constants::error_complexity;
|
Chris@16
|
68 using ::boost::regex_constants::error_stack;
|
Chris@16
|
69
|
Chris@16
|
70 } // namespace regex_constants
|
Chris@16
|
71
|
Chris@16
|
72 // [7.6] Class regex_error
|
Chris@16
|
73 using ::boost::regex_error;
|
Chris@16
|
74
|
Chris@16
|
75 // [7.7] Class template regex_traits
|
Chris@16
|
76 using ::boost::regex_traits;
|
Chris@16
|
77
|
Chris@16
|
78 // [7.8] Class template basic_regex
|
Chris@16
|
79 using ::boost::basic_regex;
|
Chris@16
|
80 using ::boost::regex;
|
Chris@16
|
81 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
82 using ::boost::wregex;
|
Chris@16
|
83 #endif
|
Chris@16
|
84
|
Chris@16
|
85 #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
|
Chris@16
|
86 // [7.8.6] basic_regex swap
|
Chris@16
|
87 using ::boost::swap;
|
Chris@16
|
88 #endif
|
Chris@16
|
89
|
Chris@16
|
90 // [7.9] Class template sub_match
|
Chris@16
|
91 using ::boost::sub_match;
|
Chris@16
|
92
|
Chris@16
|
93 using ::boost::csub_match;
|
Chris@16
|
94 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
95 using ::boost::wcsub_match;
|
Chris@16
|
96 #endif
|
Chris@16
|
97 using ::boost::ssub_match;
|
Chris@16
|
98 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
99 using ::boost::wssub_match;
|
Chris@16
|
100 #endif
|
Chris@16
|
101
|
Chris@16
|
102 // [7.10] Class template match_results
|
Chris@16
|
103 using ::boost::match_results;
|
Chris@16
|
104 using ::boost::cmatch;
|
Chris@16
|
105 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
106 using ::boost::wcmatch;
|
Chris@16
|
107 #endif
|
Chris@16
|
108 using ::boost::smatch;
|
Chris@16
|
109 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
110 using ::boost::wsmatch;
|
Chris@16
|
111 #endif
|
Chris@16
|
112
|
Chris@16
|
113 using ::boost::regex_match;
|
Chris@16
|
114
|
Chris@16
|
115 // [7.11.3] Function template regex_search
|
Chris@16
|
116 using ::boost::regex_search;
|
Chris@16
|
117
|
Chris@16
|
118 // [7.11.4] Function template regex_replace
|
Chris@16
|
119 using ::boost::regex_replace;
|
Chris@16
|
120
|
Chris@16
|
121 // [7.12.1] Class template regex_iterator
|
Chris@16
|
122 using ::boost::regex_iterator;
|
Chris@16
|
123 using ::boost::cregex_iterator;
|
Chris@16
|
124 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
125 using ::boost::wcregex_iterator;
|
Chris@16
|
126 #endif
|
Chris@16
|
127 using ::boost::sregex_iterator;
|
Chris@16
|
128 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
129 using ::boost::wsregex_iterator;
|
Chris@16
|
130 #endif
|
Chris@16
|
131
|
Chris@16
|
132 // [7.12.2] Class template regex_token_iterator
|
Chris@16
|
133 using ::boost::regex_token_iterator;
|
Chris@16
|
134 using ::boost::cregex_token_iterator;
|
Chris@16
|
135 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
136 using ::boost::wcregex_token_iterator;
|
Chris@16
|
137 #endif
|
Chris@16
|
138 using ::boost::sregex_token_iterator;
|
Chris@16
|
139 #ifndef BOOST_NO_WREGEX
|
Chris@16
|
140 using ::boost::wsregex_token_iterator;
|
Chris@16
|
141 #endif
|
Chris@16
|
142
|
Chris@16
|
143 } } // namespaces
|
Chris@16
|
144
|
Chris@16
|
145 #endif
|
Chris@16
|
146
|
Chris@16
|
147 #endif
|