PrevUpHomeNext

Struct u16_encoder

boost::unicode::u16_encoder

Synopsis

// In header: <boost/unicode/utf_codecs.hpp>


struct u16_encoder {
  // types
  typedef char32         input_type; 
  typedef char16         output_type;
  typedef mpl::int_< 2 > max_output; 

  // public member functions
  template<typename OutputIterator> 
    OutputIterator operator()(char32, OutputIterator);
};

Description

Model of OneManyConverter that converts a code point to a sequence of UTF-16 code units.

u16_encoder public member functions

  1. template<typename OutputIterator> 
      OutputIterator operator()(char32 v, OutputIterator out);

    Throws std::out_of_range if v is not a valid code point.


PrevUpHomeNext