Corrade/Utility/Unicode.h file

Namespace Corrade::Utility::Unicode.

Contents

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 prevChar(Containers::ArrayView<const char> text, std::size_t cursor) -> std::pair<char32_t, std::size_t>
Previous UTF-8 character.
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(const std::string& text) -> std::wstring
Widen UTF-8 string for use with Windows Unicode APIs.
auto narrow(const std::wstring& text) -> std::string
Narrow string to UTF-8 for use with Windows Unicode APIs.