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