1 | /* |
2 | * |
3 | * Copyright (c) 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 char_regex_traits.cpp |
15 | * VERSION see <boost/version.hpp> |
16 | * DESCRIPTION: Declares deprecated traits classes char_regex_traits<>. |
17 | */ |
18 | |
19 | |
20 | #ifndef BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP |
21 | #define BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP |
22 | |
23 | #ifdef BOOST_MSVC |
24 | #pragma warning(push) |
25 | #pragma warning(disable: 4103) |
26 | #endif |
27 | #ifdef BOOST_HAS_ABI_HEADERS |
28 | # include BOOST_ABI_PREFIX |
29 | #endif |
30 | #ifdef BOOST_MSVC |
31 | #pragma warning(pop) |
32 | #endif |
33 | |
34 | namespace boost{ |
35 | |
36 | namespace deprecated{ |
37 | // |
38 | // class char_regex_traits_i |
39 | // provides case insensitive traits classes (deprecated): |
40 | template <class charT> |
41 | class char_regex_traits_i : public regex_traits<charT> {}; |
42 | |
43 | template<> |
44 | class char_regex_traits_i<char> : public regex_traits<char> |
45 | { |
46 | public: |
47 | typedef char char_type; |
48 | typedef unsigned char uchar_type; |
49 | typedef unsigned int size_type; |
50 | typedef regex_traits<char> base_type; |
51 | |
52 | }; |
53 | |
54 | #ifndef BOOST_NO_WREGEX |
55 | template<> |
56 | class char_regex_traits_i<wchar_t> : public regex_traits<wchar_t> |
57 | { |
58 | public: |
59 | typedef wchar_t char_type; |
60 | typedef unsigned short uchar_type; |
61 | typedef unsigned int size_type; |
62 | typedef regex_traits<wchar_t> base_type; |
63 | |
64 | }; |
65 | #endif |
66 | } // namespace deprecated |
67 | } // namespace boost |
68 | |
69 | #ifdef BOOST_MSVC |
70 | #pragma warning(push) |
71 | #pragma warning(disable: 4103) |
72 | #endif |
73 | #ifdef BOOST_HAS_ABI_HEADERS |
74 | # include BOOST_ABI_SUFFIX |
75 | #endif |
76 | #ifdef BOOST_MSVC |
77 | #pragma warning(pop) |
78 | #endif |
79 | |
80 | #endif // include |
81 | |
82 | |