A text encoder.
More...
#include <text_encX.hpp>
|
| ~text_encoder () |
| Destroys the text encoder.
|
|
std::string | encode_to_cp932 (const std::string_view &utf8) const |
| Encodes a string to CP932.
|
|
std::string | decode_from_cp932 (const std::string_view &cp932) const |
| Decodes a string from CP932.
|
|
◆ decode_from_cp932()
std::string tetengo::platform_dependent::text_encoder::decode_from_cp932 |
( |
const std::string_view & | cp932 | ) |
const |
|
nodiscard |
Decodes a string from CP932.
- Parameters
-
- Returns
- A string in UTF-8.
◆ encode_to_cp932()
std::string tetengo::platform_dependent::text_encoder::encode_to_cp932 |
( |
const std::string_view & | utf8 | ) |
const |
|
nodiscard |
Encodes a string to CP932.
- Parameters
-
- Returns
- A string in CP932.
◆ instance()
static const text_encoder & tetengo::platform_dependent::text_encoder::instance |
( |
| ) |
|
|
staticnodiscard |
Returns the instance.
- Returns
- The instance.
The documentation for this class was generated from the following file:
- library/platform_dependent/cpp/include/tetengo/platform_dependent/text_encX.hpp