Loading...
Searching...
No Matches
Utf.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
68 static In decode(In begin, In end, char32_t& output, std::optional<char32_t> replacement = std::nullopt);
84 static Out encode(char32_t input, Out output, std::optional<std::uint8_t> replacement = std::nullopt);
194 static Out toWide(In begin, In end, Out output, std::optional<wchar_t> replacement = std::nullopt);
208 static Out toLatin1(In begin, In end, Out output, std::optional<char> replacement = std::nullopt);
227 static Out toUtf8(In begin, In end, Out output, std::optional<std::uint8_t> replacement = std::nullopt);
241 static Out toUtf16(In begin, In end, Out output, std::optional<char16_t> replacement = std::nullopt);
281 static In decode(In begin, In end, char32_t& output, std::optional<char32_t> replacement = std::nullopt);
297 static Out encode(char32_t input, Out output, std::optional<char16_t> replacement = std::nullopt);
407 static Out toWide(In begin, In end, Out output, std::optional<wchar_t> replacement = std::nullopt);
421 static Out toLatin1(In begin, In end, Out output, std::optional<char> replacement = std::nullopt);
435 static Out toUtf8(In begin, In end, Out output, std::optional<std::uint8_t> replacement = std::nullopt);
454 static Out toUtf16(In begin, In end, Out output, std::optional<char16_t> replacement = std::nullopt);
495 static In decode(In begin, In end, char32_t& output, std::optional<char32_t> replacement = std::nullopt);
512 static Out encode(char32_t input, Out output, std::optional<char32_t> replacement = std::nullopt);
621 static Out toWide(In begin, In end, Out output, std::optional<wchar_t> replacement = std::nullopt);
635 static Out toLatin1(In begin, In end, Out output, std::optional<char> replacement = std::nullopt);
649 static Out toUtf8(In begin, In end, Out output, std::optional<std::uint8_t> replacement = std::nullopt);
663 static Out toUtf16(In begin, In end, Out output, std::optional<char16_t> replacement = std::nullopt);
682 static Out toUtf32(In begin, In end, Out output, std::optional<char32_t> replacement = std::nullopt);
751 static Out encodeWide(char32_t codepoint, Out output, std::optional<wchar_t> replacement = std::nullopt);
static Out toUtf16(In begin, In end, Out output, std::optional< char16_t > replacement=std::nullopt)
Convert a UTF-16 characters range to UTF-16.
static Out toWide(In begin, In end, Out output, std::optional< wchar_t > replacement=std::nullopt)
Convert an UTF-16 characters range to wide characters.
static Out fromWide(In begin, In end, Out output)
Convert a wide characters range to UTF-16.
static Out fromLatin1(In begin, In end, Out output)
Convert a latin-1 (ISO-5589-1) characters range to UTF-16.
static Out encode(char32_t input, Out output, std::optional< char16_t > replacement=std::nullopt)
Encode a single UTF-16 character.
static Out fromAnsi(In begin, In end, Out output, const std::locale &locale={})
Convert an ANSI characters range to UTF-16.
static Out toUtf32(In begin, In end, Out output, std::optional< char32_t > replacement=std::nullopt)
Convert a UTF-16 characters range to UTF-32.
static std::size_t count(In begin, In end)
Count the number of characters of a UTF-16 sequence.
static Out toUtf8(In begin, In end, Out output, std::optional< std::uint8_t > replacement=std::nullopt)
Convert a UTF-16 characters range to UTF-8.
static Out toLatin1(In begin, In end, Out output, std::optional< char > replacement=std::nullopt)
Convert an UTF-16 characters range to latin-1 (ISO-5589-1) characters.
static Out toAnsi(In begin, In end, Out output, std::optional< char > replacement=std::nullopt, const std::locale &locale={})
Convert an UTF-16 characters range to ANSI characters.
static In decode(In begin, In end, char32_t &output, std::optional< char32_t > replacement=std::nullopt)
Decode a single UTF-16 character.
static Out fromLatin1(In begin, In end, Out output)
Convert a latin-1 (ISO-5589-1) characters range to UTF-32.
static Out toUtf8(In begin, In end, Out output, std::optional< std::uint8_t > replacement=std::nullopt)
Convert a UTF-32 characters range to UTF-8.
static Out encode(char32_t input, Out output, std::optional< char32_t > replacement=std::nullopt)
Encode a single UTF-32 character.
static char32_t decodeWide(In input)
Decode a single wide character to UTF-32.
static Out encodeWide(char32_t codepoint, Out output, std::optional< wchar_t > replacement=std::nullopt)
Encode a single UTF-32 character to wide.
static Out encodeAnsi(char32_t codepoint, Out output, std::optional< char > replacement=std::nullopt, const std::locale &locale={})
Encode a single UTF-32 character to ANSI.
static Out toUtf16(In begin, In end, Out output, std::optional< char16_t > replacement=std::nullopt)
Convert a UTF-32 characters range to UTF-16.
static Out toLatin1(In begin, In end, Out output, std::optional< char > replacement=std::nullopt)
Convert an UTF-16 characters range to latin-1 (ISO-5589-1) characters.
static Out fromAnsi(In begin, In end, Out output, const std::locale &locale={})
Convert an ANSI characters range to UTF-32.
static char32_t decodeAnsi(In input, const std::locale &locale={})
Decode a single ANSI character to UTF-32.
static std::size_t count(In begin, In end)
Count the number of characters of a UTF-32 sequence.
static Out toAnsi(In begin, In end, Out output, std::optional< char > replacement=std::nullopt, const std::locale &locale={})
Convert an UTF-32 characters range to ANSI characters.
static Out fromWide(In begin, In end, Out output)
Convert a wide characters range to UTF-32.
static In decode(In begin, In end, char32_t &output, std::optional< char32_t > replacement=std::nullopt)
Decode a single UTF-32 character.
static Out toWide(In begin, In end, Out output, std::optional< wchar_t > replacement=std::nullopt)
Convert an UTF-32 characters range to wide characters.
static Out toUtf32(In begin, In end, Out output, std::optional< char32_t > replacement=std::nullopt)
Convert a UTF-32 characters range to UTF-32.
static In decode(In begin, In end, char32_t &output, std::optional< char32_t > replacement=std::nullopt)
Decode a single UTF-8 character.
static Out toUtf16(In begin, In end, Out output, std::optional< char16_t > replacement=std::nullopt)
Convert a UTF-8 characters range to UTF-16.
static Out fromAnsi(In begin, In end, Out output, const std::locale &locale={})
Convert an ANSI characters range to UTF-8.
static Out toUtf8(In begin, In end, Out output, std::optional< std::uint8_t > replacement=std::nullopt)
Convert a UTF-8 characters range to UTF-8.
static Out toUtf32(In begin, In end, Out output, std::optional< char32_t > replacement=std::nullopt)
Convert a UTF-8 characters range to UTF-32.
static Out toWide(In begin, In end, Out output, std::optional< wchar_t > replacement=std::nullopt)
Convert an UTF-8 characters range to wide characters.
static Out fromLatin1(In begin, In end, Out output)
Convert a latin-1 (ISO-5589-1) characters range to UTF-8.
static Out fromWide(In begin, In end, Out output)
Convert a wide characters range to UTF-8.
static Out encode(char32_t input, Out output, std::optional< std::uint8_t > replacement=std::nullopt)
Encode a single UTF-8 character.
static Out toLatin1(In begin, In end, Out output, std::optional< char > replacement=std::nullopt)
Convert an UTF-8 characters range to latin-1 (ISO-5589-1) characters.
static std::size_t count(In begin, In end)
Count the number of characters of a UTF-8 sequence.
static Out toAnsi(In begin, In end, Out output, std::optional< char > replacement=std::nullopt, const std::locale &locale={})
Convert an UTF-8 characters range to ANSI characters.
Definition AudioResource.hpp:36