Corrade/Utility/Unicode.h file

Namespace Corrade::Utility::Unicode.

Namespaces

namespace Corrade
Root namespace.
namespace Corrade::Utility
Utitlities.
namespace Corrade::Utility::Unicode
Unicode utilities.

Functions

auto nextChar(Containers::ArrayView<const char> text, std::size_t cursor) -> std::pair<char32_t, std::size_t>
Next UTF-8 character.
auto nextChar(const std::string& text, const std::size_t cursor) -> std::pair<char32_t, std::size_t>
template<std::size_t size>
auto nextChar(const char(&text)[size], const std::size_t cursor) -> std::pair<char32_t, std::size_t>
auto prevChar(Containers::ArrayView<const char> text, std::size_t cursor) -> std::pair<char32_t, std::size_t>
Previous UTF-8 character.
auto prevChar(const std::string& text, const std::size_t cursor) -> std::pair<char32_t, std::size_t>
template<std::size_t size>
auto prevChar(const char(&text)[size], const std::size_t cursor) -> std::pair<char32_t, std::size_t>
auto utf32(const std::string& text) -> std::u32string
Convert UTF-8 to UTF-32.
auto utf8(char32_t character, Containers::StaticArrayView<4, char> result) -> std::size_t
Convert 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 widen(const char* text) -> Containers::Array<wchar_t>
auto widen(const std::string& text) -> std::wstring
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
auto narrow(const std::wstring& text) -> std::string