8 #ifndef BOOST_LOCALE_ENCODING_UTF_HPP_INCLUDED 
    9 #define BOOST_LOCALE_ENCODING_UTF_HPP_INCLUDED 
   11 #include <boost/locale/utf.hpp> 
   12 #include <boost/locale/encoding_errors.hpp> 
   15 #  pragma warning(push) 
   16 #  pragma warning(disable : 4275 4251 4231 4660) 
   32             template<
typename CharOut,
typename CharIn>
 
   33             std::basic_string<CharOut>
 
   36                 std::basic_string<CharOut> result;
 
   37                 result.reserve(end-begin);
 
   38                 typedef std::back_insert_iterator<std::basic_string<CharOut> > inserter_type;
 
   39                 inserter_type inserter(result);
 
   57             template<
typename CharOut,
typename CharIn>
 
   58             std::basic_string<CharOut>
 
   61                 CharIn 
const *end = str;
 
   64                 return utf_to_utf<CharOut,CharIn>(str,end,how);
 
   71             template<
typename CharOut,
typename CharIn>
 
   72             std::basic_string<CharOut>
 
   75                 return utf_to_utf<CharOut,CharIn>(str.c_str(),str.c_str()+str.size(),how);
 
static const code_point incomplete
Special constant that defines incomplete code point. 
Definition: utf.hpp:44
The excepton that is thrown in case of conversion error. 
Definition: encoding_errors.hpp:31
uint32_t code_point
The integral type that can hold a Unicode code point. 
Definition: utf.hpp:34
static const code_point illegal
Special constant that defines illegal code point. 
Definition: utf.hpp:39
UTF Traits class - functions to convert UTF sequences to and from Unicode code points. 
Definition: utf.hpp:63
std::basic_string< CharOut > utf_to_utf(CharIn const *begin, CharIn const *end, method_type how=default_method)
Definition: encoding_utf.hpp:34
Default method - skip. 
Definition: encoding_errors.hpp:57
Stop conversion and throw conversion_error. 
Definition: encoding_errors.hpp:56
method_type
Definition: encoding_errors.hpp:54