Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:22

0001 /*
0002  *
0003  * Copyright (c) 2002
0004  * John Maddock
0005  *
0006  * Use, modification and distribution are subject to the
0007  * Boost Software License, Version 1.0. (See accompanying file
0008  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009  *
0010  */
0011 
0012  /*
0013   *   LOCATION:    see http://www.boost.org for most recent version.
0014   *   FILE         char_regex_traits.cpp
0015   *   VERSION      see <boost/version.hpp>
0016   *   DESCRIPTION: Declares deprecated traits classes char_regex_traits<>.
0017   */
0018 
0019 
0020 #ifndef BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP
0021 #define BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP
0022 
0023 #ifdef BOOST_MSVC
0024 #pragma warning(push)
0025 #pragma warning(disable: 4103)
0026 #endif
0027 #ifdef BOOST_HAS_ABI_HEADERS
0028 #  include BOOST_ABI_PREFIX
0029 #endif
0030 #ifdef BOOST_MSVC
0031 #pragma warning(pop)
0032 #endif
0033 
0034 namespace boost{
0035 
0036 namespace deprecated{
0037 //
0038 // class char_regex_traits_i
0039 // provides case insensitive traits classes (deprecated):
0040 template <class charT>
0041 class char_regex_traits_i : public regex_traits<charT> {};
0042 
0043 template<>
0044 class char_regex_traits_i<char> : public regex_traits<char>
0045 {
0046 public:
0047    typedef char char_type;
0048    typedef unsigned char uchar_type;
0049    typedef unsigned int size_type;
0050    typedef regex_traits<char> base_type;
0051 
0052 };
0053 
0054 #ifndef BOOST_NO_WREGEX
0055 template<>
0056 class char_regex_traits_i<wchar_t> : public regex_traits<wchar_t>
0057 {
0058 public:
0059    typedef wchar_t char_type;
0060    typedef unsigned short uchar_type;
0061    typedef unsigned int size_type;
0062    typedef regex_traits<wchar_t> base_type;
0063 
0064 };
0065 #endif
0066 } // namespace deprecated
0067 } // namespace boost
0068 
0069 #ifdef BOOST_MSVC
0070 #pragma warning(push)
0071 #pragma warning(disable: 4103)
0072 #endif
0073 #ifdef BOOST_HAS_ABI_HEADERS
0074 #  include BOOST_ABI_SUFFIX
0075 #endif
0076 #ifdef BOOST_MSVC
0077 #pragma warning(pop)
0078 #endif
0079 
0080 #endif // include
0081