file
Unicode.hNamespace Corrade::
Namespaces
- namespace Corrade
- Root namespace.
- namespace Corrade::Utility
- Utilities.
- namespace Corrade::Utility::Unicode
- Unicode utilities.
Functions
-
auto currentChar(Containers::StringView text,
std::
size_t cursor) -> Containers::Triple<char32_t, std:: size_t, std:: size_t> new in Git master - Current UTF-8 character.
-
auto nextChar(Containers::StringView text,
std::
size_t cursor) -> Containers::Pair<char32_t, std:: size_t> - Next UTF-8 character.
-
auto prevChar(Containers::StringView text,
std::
size_t cursor) -> Containers::Pair<char32_t, std:: size_t> - Previous UTF-8 character.
- auto utf32(Containers::StringView text) -> Containers::Optional<Containers::Array<char32_t>>
- Convert a UTF-8 string to UTF-32.
-
auto utf8(char32_t character,
Containers::ArrayView4<char> result) -> std::
size_t - Convert a UTF-32 character to UTF-8.
- auto widen(Containers::StringView text) -> Containers::Array<wchar_t>
- Widen a UTF-8 string for use with Windows Unicode APIs.
- auto narrow(Containers::ArrayView<const wchar_t> text) -> Containers::String
- Narrow a string to UTF-8 for use with Windows Unicode APIs.
- auto narrow(const wchar_t* text) -> Containers::String