2013-08-08 09:54:33 +00:00
|
|
|
/*=============================================================================
|
2019-01-07 08:47:17 +00:00
|
|
|
Copyright (c) 2011-2019 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)
|
|
|
|
=============================================================================*/
|
2011-12-04 19:06:45 +00:00
|
|
|
#ifndef SPROUT_STRING_ALIAS_HPP
|
|
|
|
#define SPROUT_STRING_ALIAS_HPP
|
|
|
|
|
|
|
|
#include <sprout/config.hpp>
|
2012-02-08 14:39:36 +00:00
|
|
|
#if SPROUT_USE_TEMPLATE_ALIASES
|
2014-04-30 07:30:26 +00:00
|
|
|
# include <sprout/workaround/std/cstddef.hpp>
|
2012-04-14 10:06:21 +00:00
|
|
|
# include <sprout/string/string.hpp>
|
|
|
|
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
2012-02-08 14:39:36 +00:00
|
|
|
|
2011-12-04 19:06:45 +00:00
|
|
|
namespace sprout {
|
2012-04-14 10:06:21 +00:00
|
|
|
#if SPROUT_USE_TEMPLATE_ALIASES
|
2011-12-04 19:06:45 +00:00
|
|
|
//
|
|
|
|
// string
|
2013-03-31 04:39:26 +00:00
|
|
|
// wstring
|
|
|
|
// u16string
|
|
|
|
// u32string
|
2011-12-04 19:06:45 +00:00
|
|
|
//
|
|
|
|
template<std::size_t N>
|
|
|
|
using string = sprout::basic_string<char, N>;
|
|
|
|
template<std::size_t N>
|
|
|
|
using wstring = sprout::basic_string<wchar_t, N>;
|
2016-03-10 10:17:22 +00:00
|
|
|
#if SPROUT_USE_UNICODE_LITERALS
|
2011-12-04 19:06:45 +00:00
|
|
|
template<std::size_t N>
|
|
|
|
using u16string = sprout::basic_string<char16_t, N>;
|
|
|
|
template<std::size_t N>
|
|
|
|
using u32string = sprout::basic_string<char32_t, N>;
|
2016-03-10 10:17:22 +00:00
|
|
|
#endif
|
2012-02-08 14:39:36 +00:00
|
|
|
#endif // #if SPROUT_USE_TEMPLATE_ALIASES
|
2012-04-14 10:06:21 +00:00
|
|
|
} // namespace sprout
|
2012-02-08 14:39:36 +00:00
|
|
|
|
2011-12-04 19:06:45 +00:00
|
|
|
#endif // #ifndef SPROUT_STRING_ALIAS_HPP
|