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