source: NonGTP/Boost/boost/regex/v4/char_regex_traits.hpp @ 857

Revision 857, 1.5 KB checked in by igarcia, 19 years ago (diff)
Line 
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
27namespace boost{
28
29namespace deprecated{
30//
31// class char_regex_traits_i
32// provides case insensitive traits classes (deprecated):
33template <class charT>
34class char_regex_traits_i : public regex_traits<charT> {};
35
36template<>
37class char_regex_traits_i<char> : public regex_traits<char>
38{
39public:
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
48template<>
49class char_regex_traits_i<wchar_t> : public regex_traits<wchar_t>
50{
51public:
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
Note: See TracBrowser for help on using the repository browser.