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