7#if !defined(TETENGO_PLATFORMDEPENDENT_TEXTENCODER_HPP)
8#define TETENGO_PLATFORMDEPENDENT_TEXTENCODER_HPP
14#include <boost/core/noncopyable.hpp>
22 class text_encoder :
private boost::noncopyable
32 [[nodiscard]]
static const text_encoder&
instance();
72 const std::unique_ptr<impl> m_p_impl;
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.
~text_encoder()
Destroys the text encoder.
static const text_encoder & instance()
Returns the instance.