string_type decode(const encoded_string_view_type &string_) const
Decodes a string in this encoding to UTF-8.
encoded_string_type encode(const string_view_type &utf8) const
Encodes a UTF-8 string to this encoding.
std::u8string_view encoded_string_type
The encoded string type.
Definition utf8.hpp:33
std::string_view string_type
The string type.
Definition utf8.hpp:27
std::u8string_view encoded_string_view_type
The encoded string view type.
Definition utf8.hpp:36
std::string_view string_view_type
The string view type.
Definition utf8.hpp:30
static const utf8 & instance()
Returns the instance.