char_regex_traits.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. * LOCATION: see http://www.boost.org for most recent version.
  13. * FILE char_regex_traits.cpp
  14. * VERSION see <boost/version.hpp>
  15. * DESCRIPTION: Declares deprecated traits classes char_regex_traits<>.
  16. */
  17. #ifndef BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP
  18. #define BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP
  19. namespace boost{
  20. namespace deprecated{
  21. //
  22. // class char_regex_traits_i
  23. // provides case insensitive traits classes (deprecated):
  24. template <class charT>
  25. class char_regex_traits_i : public regex_traits<charT> {};
  26. template<>
  27. class char_regex_traits_i<char> : public regex_traits<char>
  28. {
  29. public:
  30. typedef char char_type;
  31. typedef unsigned char uchar_type;
  32. typedef unsigned int size_type;
  33. typedef regex_traits<char> base_type;
  34. };
  35. #ifndef BOOST_NO_WREGEX
  36. template<>
  37. class char_regex_traits_i<wchar_t> : public regex_traits<wchar_t>
  38. {
  39. public:
  40. typedef wchar_t char_type;
  41. typedef unsigned short uchar_type;
  42. typedef unsigned int size_type;
  43. typedef regex_traits<wchar_t> base_type;
  44. };
  45. #endif
  46. } // namespace deprecated
  47. } // namespace boost
  48. #endif // include