Boost.Locale
boost::locale::conv::narrow_converter Class Reference

Public Member Functions

 narrow_converter (const std::string &src_encoding, const std::string &target_encoding, method_type how=default_method)
 
std::string convert (const char *begin, const char *end) const
 
std::string convert (const core::string_view text) const
 
std::string operator() (const core::string_view text) const
 

Constructor & Destructor Documentation

◆ narrow_converter()

boost::locale::conv::narrow_converter::narrow_converter ( const std::string & src_encoding,
const std::string & target_encoding,
method_type how = default_method )
inline

Create converter to convert text from src_encoding to target_encoding according to policy how

Exceptions
invalid_charset_errorEither character set is not supported

Member Function Documentation

◆ convert() [1/2]

std::string boost::locale::conv::narrow_converter::convert ( const char * begin,
const char * end ) const
inline

Convert text in range [begin,end)

Exceptions
conversion_errorConversion failed

◆ convert() [2/2]

std::string boost::locale::conv::narrow_converter::convert ( const core::string_view text) const
inline

Convert text

Exceptions
conversion_errorConversion failed

◆ operator()()

std::string boost::locale::conv::narrow_converter::operator() ( const core::string_view text) const
inline

Convert text

Exceptions
conversion_errorConversion failed

The documentation for this class was generated from the following file: