2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2014-01-08 07:48:12 +00:00
|
|
|
Copyright (c) 2011-2014 Bolero MURAKAMI
|
2013-08-08 09:54:33 +00:00
|
|
|
https://github.com/bolero-MURAKAMI/Sprout
|
|
|
|
|
|
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
=============================================================================*/
|
2013-02-18 17:49:10 +00:00
|
|
|
#ifndef SPROUT_UTILITY_STRING_REF_ALIAS_HPP
|
|
|
|
#define SPROUT_UTILITY_STRING_REF_ALIAS_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2013-03-31 04:39:26 +00:00
|
|
|
#include <sprout/string/char_traits.hpp>
|
2013-02-18 17:49:10 +00:00
|
|
|
#include <sprout/utility/string_ref/string_ref.hpp>
|
|
|
|
|
|
|
|
namespace sprout {
|
|
|
|
//
|
|
|
|
// string_ref
|
|
|
|
// wstring_ref
|
2013-03-31 04:39:26 +00:00
|
|
|
// u16string_ref
|
|
|
|
// u32string_ref
|
2013-02-18 17:49:10 +00:00
|
|
|
//
|
2013-03-31 04:39:26 +00:00
|
|
|
typedef sprout::basic_string_ref<char> string_ref;
|
2013-02-18 17:49:10 +00:00
|
|
|
typedef sprout::basic_string_ref<wchar_t> wstring_ref;
|
2013-03-31 04:39:26 +00:00
|
|
|
typedef sprout::basic_string_ref<char16_t> u16string_ref;
|
|
|
|
typedef sprout::basic_string_ref<char32_t> u32string_ref;
|
2013-02-18 17:49:10 +00:00
|
|
|
//
|
2013-03-31 04:39:26 +00:00
|
|
|
// string_view
|
|
|
|
// wstring_view
|
|
|
|
// u16string_view
|
|
|
|
// u32string_view
|
2013-02-18 17:49:10 +00:00
|
|
|
//
|
2013-03-31 04:39:26 +00:00
|
|
|
typedef sprout::basic_string_ref<char> string_view;
|
|
|
|
typedef sprout::basic_string_ref<wchar_t> wstring_view;
|
|
|
|
typedef sprout::basic_string_ref<char16_t> u16string_view;
|
|
|
|
typedef sprout::basic_string_ref<char32_t> u32string_view;
|
|
|
|
|
|
|
|
#if SPROUT_USE_TEMPLATE_ALIASES
|
2013-02-18 17:49:10 +00:00
|
|
|
//
|
2013-03-31 04:39:26 +00:00
|
|
|
// basic_string_view
|
2013-02-18 17:49:10 +00:00
|
|
|
//
|
2013-03-31 04:39:26 +00:00
|
|
|
template<typename T, typename Traits = sprout::char_traits<T> >
|
|
|
|
using basic_string_view = sprout::basic_string_ref<T, Traits>;
|
|
|
|
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
2013-02-18 17:49:10 +00:00
|
|
|
} // namespace sprout
|
|
|
|
|
|
|
|
#endif // #ifndef SPROUT_UTILITY_STRING_REF_ALIAS_HPP
|