PrevUpHomeNext

Struct u8_encoder

boost::unicode::u8_encoder

Synopsis

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


struct u8_encoder {
  // types
  typedef char32         input_type; 
  typedef char           output_type;
  typedef mpl::int_< 4 > 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-8 code units.

u8_encoder public member functions

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

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


PrevUpHomeNext