boost::locale::conv Namespace Reference

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

## Classes

class | conversion_error
| The exception 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...
class | narrow_converter
class | utf_decoder
| Converter class to decode an UTF string and encode it using a local encoding. More...
class | utf_encoder
| Converter class to decode a narrow string using a local encoding and encode it with UTF. 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 (const char *begin, const char *end, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const CharType *begin, const CharType *end, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > | to_utf (const std::string &text, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > | to_utf (const char *text, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > | to_utf (const char *begin, const char *end, const std::locale &loc, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > | to_utf (const std::string &text, const std::locale &loc, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > | to_utf (const char *text, const std::locale &loc, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const std::basic_string< CharType > &text, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const CharType *text, const std::string &charset, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const CharType *begin, const CharType *end, const std::locale &loc, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const std::basic_string< CharType > &text, const std::locale &loc, method_type how=default_method)
template<typename CharType >
std::string | from_utf (const CharType *text, const std::locale &loc, method_type how=default_method)
std::string | between (const char *begin, const char *end, const std::string &to_encoding, const std::string &from_encoding, method_type how=default_method)
std::string | between (const char *text, const std::string &to_encoding, const std::string &from_encoding, method_type how=default_method)
std::string | between (const std::string &text, const std::string &to_encoding, const std::string &from_encoding, method_type how=default_method)
template<typename CharOut , typename CharIn , class Alloc = std::allocator<CharOut>>
std::basic_string< CharOut, std::char_traits< CharOut >, Alloc > | utf_to_utf (const CharIn *begin, const CharIn *end, method_type how=default_method, const Alloc &alloc=Alloc())
template<typename CharOut , typename CharIn , class Alloc >
std::basic_string< CharOut, std::char_traits< CharOut >, Alloc > | utf_to_utf (const CharIn *begin, const CharIn *end, const Alloc &alloc)
template<typename CharOut , typename CharIn , class Alloc = std::allocator<CharOut>>
std::basic_string< CharOut, std::char_traits< CharOut >, Alloc > | utf_to_utf (const CharIn *str, method_type how=default_method, const Alloc &alloc=Alloc())
template<typename CharOut , typename CharIn , class Alloc >
std::basic_string< CharOut, std::char_traits< CharOut >, Alloc > | utf_to_utf (const CharIn *str, const Alloc &alloc)
template<typename CharOut , typename CharIn , class Alloc >
std::basic_string< CharOut, std::char_traits< CharOut >, detail::rebind_alloc< Alloc, CharOut > > | utf_to_utf (const std::basic_string< CharIn, std::char_traits< CharIn >, Alloc > &str, method_type how=default_method)
template<typename CharOut , typename CharIn , class AllocOut , class AllocIn >
std::basic_string< CharOut, std::char_traits< CharOut >, AllocOut > | utf_to_utf (const std::basic_string< CharIn, std::char_traits< CharIn >, AllocIn > &str, method_type how=default_method, const AllocOut &alloc=AllocOut())
template<typename CharOut , typename CharIn , class AllocOut , class AllocIn >
std::basic_string< CharOut, std::char_traits< CharOut >, AllocOut > | utf_to_utf (const std::basic_string< CharIn, std::char_traits< CharIn >, AllocIn > &str, const AllocOut &alloc)

## Detailed Description

Namespace that contains all functions related to character set conversion.

- © Copyright 2009-2012 Artyom Beilis, Distributed under the Boost Software License, Version 1.0.