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 # ifdef BOOST_HAS_INCLUDE_NEXT
13 # include_next BOOST_TR1_HEADER(regex)
15 # include <boost/tr1/detail/config_all.hpp>
16 # include BOOST_TR1_STD_HEADER(BOOST_TR1_PATH(regex))
21 #include <boost/regex.hpp>
23 namespace std
{ namespace tr1
{
25 // [7.5] Regex constants
26 namespace regex_constants
{
28 using ::boost::regex_constants::syntax_option_type
;
29 using ::boost::regex_constants::icase
;
30 using ::boost::regex_constants::nosubs
;
31 using ::boost::regex_constants::optimize
;
32 using ::boost::regex_constants::collate
;
33 using ::boost::regex_constants::ECMAScript
;
34 using ::boost::regex_constants::basic
;
35 using ::boost::regex_constants::extended
;
36 using ::boost::regex_constants::awk
;
37 using ::boost::regex_constants::grep
;
38 using ::boost::regex_constants::egrep
;
40 using ::boost::regex_constants::match_flag_type
;
41 using ::boost::regex_constants::match_default
;
42 using ::boost::regex_constants::match_not_bol
;
43 using ::boost::regex_constants::match_not_eol
;
44 using ::boost::regex_constants::match_not_bow
;
45 using ::boost::regex_constants::match_not_eow
;
46 using ::boost::regex_constants::match_any
;
47 using ::boost::regex_constants::match_not_null
;
48 using ::boost::regex_constants::match_continuous
;
49 using ::boost::regex_constants::match_prev_avail
;
50 using ::boost::regex_constants::format_default
;
51 using ::boost::regex_constants::format_sed
;
52 using ::boost::regex_constants::format_no_copy
;
53 using ::boost::regex_constants::format_first_only
;
55 using ::boost::regex_constants::error_type
;
56 using ::boost::regex_constants::error_collate
;
57 using ::boost::regex_constants::error_ctype
;
58 using ::boost::regex_constants::error_escape
;
59 using ::boost::regex_constants::error_backref
;
60 using ::boost::regex_constants::error_brack
;
61 using ::boost::regex_constants::error_paren
;
62 using ::boost::regex_constants::error_brace
;
63 using ::boost::regex_constants::error_badbrace
;
64 using ::boost::regex_constants::error_range
;
65 using ::boost::regex_constants::error_space
;
66 using ::boost::regex_constants::error_badrepeat
;
67 using ::boost::regex_constants::error_complexity
;
68 using ::boost::regex_constants::error_stack
;
70 } // namespace regex_constants
72 // [7.6] Class regex_error
73 using ::boost::regex_error
;
75 // [7.7] Class template regex_traits
76 using ::boost::regex_traits
;
78 // [7.8] Class template basic_regex
79 using ::boost::basic_regex
;
81 #ifndef BOOST_NO_WREGEX
82 using ::boost::wregex
;
85 #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
86 // [7.8.6] basic_regex swap
90 // [7.9] Class template sub_match
91 using ::boost::sub_match
;
93 using ::boost::csub_match
;
94 #ifndef BOOST_NO_WREGEX
95 using ::boost::wcsub_match
;
97 using ::boost::ssub_match
;
98 #ifndef BOOST_NO_WREGEX
99 using ::boost::wssub_match
;
102 // [7.10] Class template match_results
103 using ::boost::match_results
;
104 using ::boost::cmatch
;
105 #ifndef BOOST_NO_WREGEX
106 using ::boost::wcmatch
;
108 using ::boost::smatch
;
109 #ifndef BOOST_NO_WREGEX
110 using ::boost::wsmatch
;
113 using ::boost::regex_match
;
115 // [7.11.3] Function template regex_search
116 using ::boost::regex_search
;
118 // [7.11.4] Function template regex_replace
119 using ::boost::regex_replace
;
121 // [7.12.1] Class template regex_iterator
122 using ::boost::regex_iterator
;
123 using ::boost::cregex_iterator
;
124 #ifndef BOOST_NO_WREGEX
125 using ::boost::wcregex_iterator
;
127 using ::boost::sregex_iterator
;
128 #ifndef BOOST_NO_WREGEX
129 using ::boost::wsregex_iterator
;
132 // [7.12.2] Class template regex_token_iterator
133 using ::boost::regex_token_iterator
;
134 using ::boost::cregex_token_iterator
;
135 #ifndef BOOST_NO_WREGEX
136 using ::boost::wcregex_token_iterator
;
138 using ::boost::sregex_token_iterator
;
139 #ifndef BOOST_NO_WREGEX
140 using ::boost::wsregex_token_iterator
;