]> git.lyx.org Git - lyx.git/blob - boost/boost/regex/v4/char_regex_traits.hpp
update to boost 1.34
[lyx.git] / boost / boost / regex / v4 / char_regex_traits.hpp
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_HAS_ABI_HEADERS
24 #  include BOOST_ABI_PREFIX
25 #endif
26
27 namespace boost{
28
29 namespace deprecated{
30 //
31 // class char_regex_traits_i
32 // provides case insensitive traits classes (deprecated):
33 template <class charT>
34 class char_regex_traits_i : public regex_traits<charT> {};
35
36 template<>
37 class char_regex_traits_i<char> : public regex_traits<char>
38 {
39 public:
40    typedef char char_type;
41    typedef unsigned char uchar_type;
42    typedef unsigned int size_type;
43    typedef regex_traits<char> base_type;
44
45 };
46
47 #ifndef BOOST_NO_WREGEX
48 template<>
49 class char_regex_traits_i<wchar_t> : public regex_traits<wchar_t>
50 {
51 public:
52    typedef wchar_t char_type;
53    typedef unsigned short uchar_type;
54    typedef unsigned int size_type;
55    typedef regex_traits<wchar_t> base_type;
56
57 };
58 #endif
59 } // namespace deprecated
60 } // namespace boost
61
62 #ifdef BOOST_HAS_ABI_HEADERS
63 #  include BOOST_ABI_SUFFIX
64 #endif
65
66 #endif // include
67