![]() |
Boost.Locale
|
Converter class to decode a narrow string using a local encoding and encode it with UTF. More...
#include <boost/locale/encoding.hpp>
Public Types | |
using | char_type = CharType |
using | string_type = std::basic_string<CharType> |
Public Member Functions | |
utf_encoder (const std::string &charset, method_type how=default_method) | |
string_type | convert (const char *begin, const char *end) const |
string_type | convert (const core::string_view text) const |
string_type | operator() (const core::string_view text) const |
Converter class to decode a narrow string using a local encoding and encode it with UTF.
|
inline |
Create an instance to convert text encoded with charset to UTF according to policy how
Note: When converting only a single text to_utf is likely faster.
invalid_charset_error | Character set is not supported |
|
inline |
Convert text in range [begin,end) to UTF
conversion_error | Conversion failed |
|
inline |
Convert text to UTF
conversion_error | Conversion failed |
|
inline |
Convert text to UTF
conversion_error | Conversion failed |