Update contrib.
1 // (C) Copyright John Maddock 2005.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 #ifndef BOOST_TR1_REGEX_HPP_INCLUDED
7 # define BOOST_TR1_REGEX_HPP_INCLUDED
8 # include <boost/tr1/detail/config.hpp>
10 #ifdef BOOST_HAS_TR1_REGEX
12 # include BOOST_TR1_HEADER(regex)
16 #include <boost/regex.hpp>
18 namespace std{ namespace tr1{
20 // [7.5] Regex constants
21 namespace regex_constants {
23 using ::boost::regex_constants::syntax_option_type;
24 using ::boost::regex_constants::icase;
25 using ::boost::regex_constants::nosubs;
26 using ::boost::regex_constants::optimize;
27 using ::boost::regex_constants::collate;
28 using ::boost::regex_constants::ECMAScript;
29 using ::boost::regex_constants::basic;
30 using ::boost::regex_constants::extended;
31 using ::boost::regex_constants::awk;
32 using ::boost::regex_constants::grep;
33 using ::boost::regex_constants::egrep;
35 using ::boost::regex_constants::match_flag_type;
36 using ::boost::regex_constants::match_default;
37 using ::boost::regex_constants::match_not_bol;
38 using ::boost::regex_constants::match_not_eol;
39 using ::boost::regex_constants::match_not_bow;
40 using ::boost::regex_constants::match_not_eow;
41 using ::boost::regex_constants::match_any;
42 using ::boost::regex_constants::match_not_null;
43 using ::boost::regex_constants::match_continuous;
44 using ::boost::regex_constants::match_prev_avail;
45 using ::boost::regex_constants::format_default;
46 using ::boost::regex_constants::format_sed;
47 using ::boost::regex_constants::format_no_copy;
48 using ::boost::regex_constants::format_first_only;
50 using ::boost::regex_constants::error_type;
51 using ::boost::regex_constants::error_collate;
52 using ::boost::regex_constants::error_ctype;
53 using ::boost::regex_constants::error_escape;
54 using ::boost::regex_constants::error_backref;
55 using ::boost::regex_constants::error_brack;
56 using ::boost::regex_constants::error_paren;
57 using ::boost::regex_constants::error_brace;
58 using ::boost::regex_constants::error_badbrace;
59 using ::boost::regex_constants::error_range;
60 using ::boost::regex_constants::error_space;
61 using ::boost::regex_constants::error_badrepeat;
62 using ::boost::regex_constants::error_complexity;
63 using ::boost::regex_constants::error_stack;
65 } // namespace regex_constants
67 // [7.6] Class regex_error
68 using ::boost::regex_error;
70 // [7.7] Class template regex_traits
71 using ::boost::regex_traits;
73 // [7.8] Class template basic_regex
74 using ::boost::basic_regex;
76 #ifndef BOOST_NO_WREGEX
77 using ::boost::wregex;
80 #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
81 // [7.8.6] basic_regex swap
85 // [7.9] Class template sub_match
86 using ::boost::sub_match;
88 using ::boost::csub_match;
89 #ifndef BOOST_NO_WREGEX
90 using ::boost::wcsub_match;
92 using ::boost::ssub_match;
93 #ifndef BOOST_NO_WREGEX
94 using ::boost::wssub_match;
97 // [7.10] Class template match_results
98 using ::boost::match_results;
99 using ::boost::cmatch;
100 #ifndef BOOST_NO_WREGEX
101 using ::boost::wcmatch;
103 using ::boost::smatch;
104 #ifndef BOOST_NO_WREGEX
105 using ::boost::wsmatch;
108 using ::boost::regex_match;
110 // [7.11.3] Function template regex_search
111 using ::boost::regex_search;
113 // [7.11.4] Function template regex_replace
114 using ::boost::regex_replace;
116 // [7.12.1] Class template regex_iterator
117 using ::boost::regex_iterator;
118 using ::boost::cregex_iterator;
119 #ifndef BOOST_NO_WREGEX
120 using ::boost::wcregex_iterator;
122 using ::boost::sregex_iterator;
123 #ifndef BOOST_NO_WREGEX
124 using ::boost::wsregex_iterator;
127 // [7.12.2] Class template regex_token_iterator
128 using ::boost::regex_token_iterator;
129 using ::boost::cregex_token_iterator;
130 #ifndef BOOST_NO_WREGEX
131 using ::boost::wcregex_token_iterator;
133 using ::boost::sregex_token_iterator;
134 #ifndef BOOST_NO_WREGEX
135 using ::boost::wsregex_token_iterator;