Chris@16
|
1 /*
|
Chris@16
|
2 *
|
Chris@16
|
3 * Copyright (c) 1998-2002
|
Chris@16
|
4 * John Maddock
|
Chris@16
|
5 *
|
Chris@16
|
6 * Use, modification and distribution are subject to the
|
Chris@16
|
7 * Boost Software License, Version 1.0. (See accompanying file
|
Chris@16
|
8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
9 *
|
Chris@16
|
10 */
|
Chris@16
|
11
|
Chris@16
|
12 /*
|
Chris@16
|
13 * LOCATION: see http://www.boost.org for most recent version.
|
Chris@16
|
14 * FILE instances.cpp
|
Chris@16
|
15 * VERSION see <boost/version.hpp>
|
Chris@16
|
16 * DESCRIPTION: Defines those template instances that are placed in the
|
Chris@16
|
17 * library rather than in the users object files.
|
Chris@16
|
18 */
|
Chris@16
|
19
|
Chris@16
|
20 //
|
Chris@16
|
21 // note no include guard, we may include this multiple times:
|
Chris@16
|
22 //
|
Chris@16
|
23 #ifndef BOOST_REGEX_NO_EXTERNAL_TEMPLATES
|
Chris@16
|
24
|
Chris@16
|
25 namespace boost{
|
Chris@16
|
26
|
Chris@16
|
27 //
|
Chris@16
|
28 // this header can be included multiple times, each time with
|
Chris@16
|
29 // a different character type, BOOST_REGEX_CHAR_T must be defined
|
Chris@16
|
30 // first:
|
Chris@16
|
31 //
|
Chris@16
|
32 #ifndef BOOST_REGEX_CHAR_T
|
Chris@16
|
33 # error "BOOST_REGEX_CHAR_T not defined"
|
Chris@16
|
34 #endif
|
Chris@16
|
35
|
Chris@16
|
36 #ifndef BOOST_REGEX_TRAITS_T
|
Chris@16
|
37 # define BOOST_REGEX_TRAITS_T , boost::regex_traits<BOOST_REGEX_CHAR_T >
|
Chris@16
|
38 #endif
|
Chris@16
|
39
|
Chris@16
|
40 //
|
Chris@16
|
41 // what follows is compiler specific:
|
Chris@16
|
42 //
|
Chris@16
|
43
|
Chris@16
|
44 #if defined(__BORLANDC__) && (__BORLANDC__ < 0x600)
|
Chris@16
|
45
|
Chris@16
|
46 #ifdef BOOST_HAS_ABI_HEADERS
|
Chris@16
|
47 # include BOOST_ABI_PREFIX
|
Chris@16
|
48 #endif
|
Chris@16
|
49
|
Chris@16
|
50 # ifndef BOOST_REGEX_INSTANTIATE
|
Chris@16
|
51 # pragma option push -Jgx
|
Chris@16
|
52 # endif
|
Chris@16
|
53
|
Chris@16
|
54 template class BOOST_REGEX_DECL basic_regex< BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >;
|
Chris@16
|
55 template class BOOST_REGEX_DECL match_results< const BOOST_REGEX_CHAR_T* >;
|
Chris@16
|
56 #ifndef BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
57 template class BOOST_REGEX_DECL ::boost::re_detail::perl_matcher<BOOST_REGEX_CHAR_T const *, match_results< const BOOST_REGEX_CHAR_T* >::allocator_type BOOST_REGEX_TRAITS_T >;
|
Chris@16
|
58 #endif
|
Chris@16
|
59
|
Chris@16
|
60 # ifndef BOOST_REGEX_INSTANTIATE
|
Chris@16
|
61 # pragma option pop
|
Chris@16
|
62 # endif
|
Chris@16
|
63
|
Chris@16
|
64 #ifdef BOOST_HAS_ABI_HEADERS
|
Chris@16
|
65 # include BOOST_ABI_SUFFIX
|
Chris@16
|
66 #endif
|
Chris@16
|
67
|
Chris@16
|
68 #elif defined(BOOST_MSVC) || defined(__ICL)
|
Chris@16
|
69
|
Chris@16
|
70 # ifndef BOOST_REGEX_INSTANTIATE
|
Chris@16
|
71 # ifdef __GNUC__
|
Chris@16
|
72 # define template __extension__ extern template
|
Chris@16
|
73 # else
|
Chris@16
|
74 # if BOOST_MSVC > 1310
|
Chris@16
|
75 # define BOOST_REGEX_TEMPLATE_DECL
|
Chris@16
|
76 # endif
|
Chris@16
|
77 # define template extern template
|
Chris@16
|
78 # endif
|
Chris@16
|
79 # endif
|
Chris@16
|
80
|
Chris@16
|
81 #ifndef BOOST_REGEX_TEMPLATE_DECL
|
Chris@16
|
82 # define BOOST_REGEX_TEMPLATE_DECL BOOST_REGEX_DECL
|
Chris@16
|
83 #endif
|
Chris@16
|
84
|
Chris@16
|
85 # ifdef BOOST_MSVC
|
Chris@16
|
86 # pragma warning(push)
|
Chris@16
|
87 # pragma warning(disable : 4251 4231)
|
Chris@16
|
88 # if BOOST_MSVC < 1600
|
Chris@16
|
89 # pragma warning(disable : 4660)
|
Chris@16
|
90 # endif
|
Chris@16
|
91 # endif
|
Chris@16
|
92
|
Chris@16
|
93 template class BOOST_REGEX_TEMPLATE_DECL basic_regex< BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >;
|
Chris@16
|
94
|
Chris@16
|
95 template class BOOST_REGEX_TEMPLATE_DECL match_results< const BOOST_REGEX_CHAR_T* >;
|
Chris@16
|
96 #ifndef BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
97 template class BOOST_REGEX_TEMPLATE_DECL ::boost::re_detail::perl_matcher<BOOST_REGEX_CHAR_T const *, match_results< const BOOST_REGEX_CHAR_T* >::allocator_type BOOST_REGEX_TRAITS_T >;
|
Chris@16
|
98 #endif
|
Chris@16
|
99 #if !(defined(BOOST_DINKUMWARE_STDLIB) && (BOOST_DINKUMWARE_STDLIB <= 1))\
|
Chris@16
|
100 && !(defined(BOOST_INTEL_CXX_VERSION) && (BOOST_INTEL_CXX_VERSION <= 800))\
|
Chris@16
|
101 && !(defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))\
|
Chris@16
|
102 && !defined(BOOST_REGEX_ICU_INSTANCES)
|
Chris@16
|
103 template class BOOST_REGEX_TEMPLATE_DECL match_results< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator >;
|
Chris@16
|
104 #ifndef BOOST_NO_STD_ALLOCATOR
|
Chris@16
|
105 template class BOOST_REGEX_TEMPLATE_DECL ::boost::re_detail::perl_matcher< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator, match_results< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator >::allocator_type, boost::regex_traits<BOOST_REGEX_CHAR_T > >;
|
Chris@16
|
106 #endif
|
Chris@16
|
107 #endif
|
Chris@16
|
108
|
Chris@16
|
109
|
Chris@16
|
110 # ifdef BOOST_MSVC
|
Chris@16
|
111 # pragma warning(pop)
|
Chris@16
|
112 # endif
|
Chris@16
|
113
|
Chris@16
|
114 # ifdef template
|
Chris@16
|
115 # undef template
|
Chris@16
|
116 # endif
|
Chris@16
|
117
|
Chris@16
|
118 #undef BOOST_REGEX_TEMPLATE_DECL
|
Chris@16
|
119
|
Chris@16
|
120 #elif (defined(__GNUC__) && (__GNUC__ >= 3)) || !defined(BOOST_NO_CXX11_EXTERN_TEMPLATE)
|
Chris@16
|
121
|
Chris@16
|
122 # ifndef BOOST_REGEX_INSTANTIATE
|
Chris@16
|
123 # ifdef __GNUC__
|
Chris@16
|
124 # define template __extension__ extern template
|
Chris@16
|
125 # else
|
Chris@16
|
126 # define template extern template
|
Chris@16
|
127 # endif
|
Chris@16
|
128 # endif
|
Chris@16
|
129
|
Chris@16
|
130 #if !defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_REGEX_ICU_INSTANCES)
|
Chris@16
|
131 namespace re_detail{
|
Chris@16
|
132 template BOOST_REGEX_DECL
|
Chris@16
|
133 std::locale cpp_regex_traits_base<BOOST_REGEX_CHAR_T>::imbue(const std::locale& l);
|
Chris@16
|
134
|
Chris@16
|
135 template BOOST_REGEX_DECL
|
Chris@16
|
136 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::string_type
|
Chris@16
|
137 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::transform_primary(const BOOST_REGEX_CHAR_T* p1, const BOOST_REGEX_CHAR_T* p2) const;
|
Chris@16
|
138 template BOOST_REGEX_DECL
|
Chris@16
|
139 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::string_type
|
Chris@16
|
140 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::transform(const BOOST_REGEX_CHAR_T* p1, const BOOST_REGEX_CHAR_T* p2) const;
|
Chris@16
|
141 template BOOST_REGEX_DECL
|
Chris@16
|
142 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::string_type
|
Chris@16
|
143 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::lookup_collatename(const BOOST_REGEX_CHAR_T* p1, const BOOST_REGEX_CHAR_T* p2) const;
|
Chris@16
|
144 template BOOST_REGEX_DECL
|
Chris@16
|
145 void cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::init();
|
Chris@16
|
146 template BOOST_REGEX_DECL
|
Chris@16
|
147 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::char_class_type
|
Chris@16
|
148 cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::lookup_classname_imp(const BOOST_REGEX_CHAR_T* p1, const BOOST_REGEX_CHAR_T* p2) const;
|
Chris@16
|
149 #ifdef BOOST_REGEX_BUGGY_CTYPE_FACET
|
Chris@16
|
150 template BOOST_REGEX_DECL
|
Chris@16
|
151 bool cpp_regex_traits_implementation<BOOST_REGEX_CHAR_T>::isctype(const BOOST_REGEX_CHAR_T c, char_class_type mask) const;
|
Chris@16
|
152 #endif
|
Chris@16
|
153 } // namespace
|
Chris@16
|
154 template BOOST_REGEX_DECL
|
Chris@16
|
155 int cpp_regex_traits<BOOST_REGEX_CHAR_T>::toi(const BOOST_REGEX_CHAR_T*& first, const BOOST_REGEX_CHAR_T* last, int radix)const;
|
Chris@16
|
156 template BOOST_REGEX_DECL
|
Chris@16
|
157 std::string cpp_regex_traits<BOOST_REGEX_CHAR_T>::catalog_name(const std::string& name);
|
Chris@16
|
158 template BOOST_REGEX_DECL
|
Chris@16
|
159 std::string& cpp_regex_traits<BOOST_REGEX_CHAR_T>::get_catalog_name_inst();
|
Chris@16
|
160 template BOOST_REGEX_DECL
|
Chris@16
|
161 std::string cpp_regex_traits<BOOST_REGEX_CHAR_T>::get_catalog_name();
|
Chris@16
|
162 #ifdef BOOST_HAS_THREADS
|
Chris@16
|
163 template BOOST_REGEX_DECL
|
Chris@16
|
164 static_mutex& cpp_regex_traits<BOOST_REGEX_CHAR_T>::get_mutex_inst();
|
Chris@16
|
165 #endif
|
Chris@16
|
166 #endif
|
Chris@16
|
167
|
Chris@16
|
168 template BOOST_REGEX_DECL basic_regex<BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >&
|
Chris@16
|
169 basic_regex<BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >::do_assign(
|
Chris@16
|
170 const BOOST_REGEX_CHAR_T* p1,
|
Chris@16
|
171 const BOOST_REGEX_CHAR_T* p2,
|
Chris@16
|
172 flag_type f);
|
Chris@16
|
173 template BOOST_REGEX_DECL basic_regex<BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >::locale_type BOOST_REGEX_CALL
|
Chris@16
|
174 basic_regex<BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >::imbue(locale_type l);
|
Chris@16
|
175
|
Chris@16
|
176 template BOOST_REGEX_DECL void BOOST_REGEX_CALL
|
Chris@16
|
177 match_results<const BOOST_REGEX_CHAR_T*>::maybe_assign(
|
Chris@16
|
178 const match_results<const BOOST_REGEX_CHAR_T*>& m);
|
Chris@16
|
179
|
Chris@16
|
180 namespace re_detail{
|
Chris@16
|
181 template BOOST_REGEX_DECL void perl_matcher<BOOST_REGEX_CHAR_T const *, match_results< const BOOST_REGEX_CHAR_T* >::allocator_type BOOST_REGEX_TRAITS_T >::construct_init(
|
Chris@16
|
182 const basic_regex<BOOST_REGEX_CHAR_T BOOST_REGEX_TRAITS_T >& e, match_flag_type f);
|
Chris@16
|
183 template BOOST_REGEX_DECL bool perl_matcher<BOOST_REGEX_CHAR_T const *, match_results< const BOOST_REGEX_CHAR_T* >::allocator_type BOOST_REGEX_TRAITS_T >::match();
|
Chris@16
|
184 template BOOST_REGEX_DECL bool perl_matcher<BOOST_REGEX_CHAR_T const *, match_results< const BOOST_REGEX_CHAR_T* >::allocator_type BOOST_REGEX_TRAITS_T >::find();
|
Chris@16
|
185 } // namespace
|
Chris@16
|
186
|
Chris@16
|
187 #if (defined(__GLIBCPP__) || defined(__GLIBCXX__)) \
|
Chris@16
|
188 && !defined(BOOST_REGEX_ICU_INSTANCES)\
|
Chris@16
|
189 && !defined(__SGI_STL_PORT)\
|
Chris@16
|
190 && !defined(_STLPORT_VERSION)
|
Chris@16
|
191 // std:basic_string<>::const_iterator instances as well:
|
Chris@16
|
192 template BOOST_REGEX_DECL void BOOST_REGEX_CALL
|
Chris@16
|
193 match_results<std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator>::maybe_assign(
|
Chris@16
|
194 const match_results<std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator>& m);
|
Chris@16
|
195
|
Chris@16
|
196 namespace re_detail{
|
Chris@16
|
197 template BOOST_REGEX_DECL void perl_matcher<std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator, match_results< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator >::allocator_type, boost::regex_traits<BOOST_REGEX_CHAR_T > >::construct_init(
|
Chris@16
|
198 const basic_regex<BOOST_REGEX_CHAR_T>& e, match_flag_type f);
|
Chris@16
|
199 template BOOST_REGEX_DECL bool perl_matcher<std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator, match_results< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator >::allocator_type, boost::regex_traits<BOOST_REGEX_CHAR_T > >::match();
|
Chris@16
|
200 template BOOST_REGEX_DECL bool perl_matcher<std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator, match_results< std::basic_string<BOOST_REGEX_CHAR_T>::const_iterator >::allocator_type, boost::regex_traits<BOOST_REGEX_CHAR_T > >::find();
|
Chris@16
|
201 } // namespace
|
Chris@16
|
202 #endif
|
Chris@16
|
203
|
Chris@16
|
204 # ifdef template
|
Chris@16
|
205 # undef template
|
Chris@16
|
206 # endif
|
Chris@16
|
207
|
Chris@16
|
208
|
Chris@16
|
209 #endif
|
Chris@16
|
210
|
Chris@16
|
211 } // namespace boost
|
Chris@16
|
212
|
Chris@16
|
213 #endif // BOOST_REGEX_NO_EXTERNAL_TEMPLATES
|
Chris@16
|
214
|
Chris@16
|
215
|
Chris@16
|
216
|
Chris@16
|
217
|
Chris@16
|
218
|