Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
}
 enum that defines conversion policy More...
 

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)
 convert string to UTF string from text in range [begin,end) encoded with charset according to policy how More...
 
template<typename CharType >
std::string from_utf (CharType const *begin, CharType const *end, std::string const &charset, method_type how=default_method)
 convert UTF text in range [begin,end) to a text encoded with charset according to policy how More...
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *begin, char const *end, std::locale const &loc, method_type how=default_method)
 convert string to UTF string from text in range [begin,end) encoded according to locale loc according to policy how More...
 
template<typename CharType >
std::string from_utf (CharType const *begin, CharType const *end, std::locale const &loc, method_type how=default_method)
 convert UTF text in range [begin,end) to a text encoded according to locale loc according to policy how More...
 
template<typename CharType >
std::basic_string< CharType > to_utf (std::string const &text, std::string const &charset, method_type how=default_method)
 convert a string text encoded with charset to UTF string More...
 
template<typename CharType >
std::string from_utf (std::basic_string< CharType > const &text, std::string const &charset, method_type how=default_method)
 Convert a text from charset to UTF string. More...
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *text, std::string const &charset, method_type how=default_method)
 Convert a text from charset to UTF string. More...
 
template<typename CharType >
std::string from_utf (CharType const *text, std::string const &charset, method_type how=default_method)
 Convert a text from UTF to charset. More...
 
template<typename CharType >
std::basic_string< CharType > to_utf (std::string const &text, std::locale const &loc, method_type how=default_method)
 Convert a text in locale encoding given by loc to UTF. More...
 
template<typename CharType >
std::string from_utf (std::basic_string< CharType > const &text, std::locale const &loc, method_type how=default_method)
 Convert a text in UTF to locale encoding given by loc. More...
 
template<typename CharType >
std::basic_string< CharType > to_utf (char const *text, std::locale const &loc, method_type how=default_method)
 Convert a text in locale encoding given by loc to UTF. More...
 
template<typename CharType >
std::string from_utf (CharType const *text, std::locale const &loc, method_type how=default_method)
 Convert a text in UTF to locale encoding given by loc. More...
 
BOOST_LOCALE_DECL std::string between (char const *begin, char const *end, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 Convert a text in range [begin,end) to to_encoding from from_encoding. More...
 
std::string between (char const *text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 Convert a text to to_encoding from from_encoding. More...
 
std::string between (std::string const &text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
 Convert a text to to_encoding from from_encoding. More...
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (CharIn const *begin, CharIn const *end, method_type how=default_method)
 Convert a Unicode text in range [begin,end) to other Unicode encoding. More...
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (CharIn const *str, method_type how=default_method)
 Convert a Unicode NUL terminated string str other Unicode encoding. More...
 
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > utf_to_utf (std::basic_string< CharIn > const &str, method_type how=default_method)
 Convert a Unicode string str other Unicode encoding. More...
 

Detailed Description

Namespace that contains all functions related to character set conversion.