boost::unicode::u16_decoder
// In header: <boost/unicode/utf_codecs.hpp> struct u16_decoder { // types typedef char16 input_type; typedef char32 output_type; typedef mpl::int_< 1 > max_output; // public member functions template<typename In, typename Out> Out ltr(In &, In, Out); template<typename In, typename Out> Out rtl(In, In &, Out); // private member functions char32 code_point(char16, char16); };
Model of Converter
that converts a sequence of UTF-16 code units into a single code point.