Boost.Locale
boost::locale::conv Namespace Reference

Namespace that contains all functions related to character set conversion. More...

Classes

class  conversion_error
 The excepton that is thrown in case of conversion error. More...
 
class  invalid_charset_error
 This exception is thrown in case of use of unsupported or invalid character set. More...
 

Enumerations

enum  method_type { skip = 0, stop = 1, default_method = skip }
 

Functions

template<typename CharType >
std::basic_string< CharType > to_utf (char const *begin, char const *end, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (CharType const *begin, CharType const *end, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *begin, char const *end, std::locale const &loc, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (CharType const *begin, CharType const *end, std::locale const &loc, method_type how=default_method)
 
template<typename CharType >
std::basic_string< CharType > to_utf (std::string const &text, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (std::basic_string< CharType > const &text, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *text, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (CharType const *text, std::string const &charset, method_type how=default_method)
 
template<typename CharType >
std::basic_string< CharType > to_utf (std::string const &text, std::locale const &loc, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (std::basic_string< CharType > const &text, std::locale const &loc, method_type how=default_method)
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *text, std::locale const &loc, method_type how=default_method)
 
template<typename CharType >
std::string from_utf (CharType const *text, std::locale const &loc, method_type how=default_method)
 
std::string between (char const *begin, char const *end, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 
std::string between (char const *text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 
std::string between (std::string const &text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (CharIn const *begin, CharIn const *end, method_type how=default_method)
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (CharIn const *str, method_type how=default_method)
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (std::basic_string< CharIn > const &str, method_type how=default_method)
 

Detailed Description

Namespace that contains all functions related to character set conversion.