PrevUpHomeNext

Struct template utf16_view

boost::text::utf16_view

Synopsis

// In header: <boost/text/transcode_view.hpp>

template<utf16_iter I, std::sentinel_for< I > S = I> 
struct utf16_view :
  public stl_interfaces::view_interface< utf16_view< I, I > >
{
  // types
  typedef I iterator;
  typedef S sentinel;

  // construct/copy/destruct
  utf16_view();
  utf16_view(iterator, sentinel);

  // public member functions
  constexpr iterator begin() const;
  constexpr sentinel end() const;

  // friend functions
  std::ostream & operator<<(std::ostream &, utf16_view);
  std::wostream & operator<<(std::wostream &, utf16_view);
};

Description

A view over UTF-16 code units.

utf16_view public construct/copy/destruct

  1. utf16_view();
  2. utf16_view(iterator first, sentinel last);

utf16_view public member functions

  1. constexpr iterator begin() const;
  2. constexpr sentinel end() const;

utf16_view friend functions

  1. std::ostream & operator<<(std::ostream & os, utf16_view v);

    Stream inserter; performs unformatted output, in UTF-8 encoding.

  2. std::wostream & operator<<(std::wostream & os, utf16_view v);

    Stream inserter; performs unformatted output, in UTF-16 encoding. Defined on Windows only.


PrevUpHomeNext