A UTF-8 encoding.
More...
#include <utf8.hpp>
|
using | string_type = std::string_view |
| The string type.
|
|
using | string_view_type = std::string_view |
| The string view type.
|
|
using | encoded_string_type = std::u8string_view |
| The encoded string type.
|
|
using | encoded_string_view_type = std::u8string_view |
| The encoded string view type.
|
|
◆ decode()
Decodes a string in this encoding to UTF-8.
- Parameters
-
string_ | A string in this encoding. |
- Returns
- A decoded string.
◆ encode()
Encodes a UTF-8 string to this encoding.
- Parameters
-
- Returns
- An encoded string.
◆ instance()
static const utf8 & tetengo::text::encoding::utf8::instance |
( |
| ) |
|
|
staticnodiscard |
Returns the instance.
- Returns
- The instance.
The documentation for this class was generated from the following file:
- library/text/cpp/include/tetengo/text/encoding/utf8.hpp