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

source code of boost/boost/tr1/regex.hpp