14#include "../utility/utility.hpp"
15#include "../macros.hpp"
21hi_export_module(hikogui.char_maps.to_string);
23hi_export
namespace hi {
inline namespace v1 {
54#if WCHAR_MAX >= 0x10'ffff
98#if WCHAR_MAX >= 0x10'ffff
116[[nodiscard]]
constexpr std::u8string
to_u8string(std::u32string_view rhs)
noexcept
124[[nodiscard]]
constexpr std::u8string
to_u8string(std::u16string_view rhs)
noexcept
132[[nodiscard]]
constexpr std::u8string
to_u8string(std::u8string_view rhs)
noexcept
140[[nodiscard]]
constexpr std::u8string
to_u8string(std::wstring_view rhs)
noexcept
142#if WCHAR_MAX >= 0x10'ffff
152[[nodiscard]]
constexpr std::u8string
to_u8string(std::string_view rhs)
noexcept
162#if WCHAR_MAX >= 0x10'ffff
174#if WCHAR_MAX >= 0x10'ffff
186#if WCHAR_MAX >= 0x10'ffff
198#if WCHAR_MAX >= 0x10'ffff
210#if WCHAR_MAX >= 0x10'ffff
220[[nodiscard]]
constexpr std::string to_string(std::u32string_view rhs)
noexcept
228[[nodiscard]]
constexpr std::string to_string(std::u16string_view rhs)
noexcept
236[[nodiscard]]
constexpr std::string to_string(std::u8string_view rhs)
noexcept
244[[nodiscard]]
constexpr std::string to_string(std::wstring_view rhs)
noexcept
246#if WCHAR_MAX >= 0x10'ffff
256[[nodiscard]]
constexpr std::string to_string(std::string_view rhs)
noexcept
Definition of the Unicode UTF-32 encoding.
Definition of the Unicode UTF-8 encoding.
Definition of the Unicode UTF-16 encoding.
constexpr std::u16string to_u16string(std::u32string_view rhs) noexcept
Conversion from UTF-32 to UTF-16.
Definition to_string.hpp:72
constexpr std::u32string to_u32string(std::u32string_view rhs) noexcept
Identity conversion from UTF-32 to UTF-32.
Definition to_string.hpp:28
constexpr std::u8string to_u8string(std::u32string_view rhs) noexcept
Conversion from UTF-32 to UTF-8.
Definition to_string.hpp:116
constexpr std::wstring to_wstring(std::u32string_view rhs) noexcept
Conversion from UTF-32 to wide-string (UTF-16/32).
Definition to_string.hpp:160
The HikoGUI namespace.
Definition array_generic.hpp:20
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
A converter between character encodings.
Definition char_converter.hpp:98
constexpr OutRange convert(InRange &&src) const noexcept
Convert text between the given encodings.
Definition char_converter.hpp:114