PrevUpHomeNext

Struct template utf8_view

boost::text::utf8_view

Synopsis

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

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

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

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

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

Description

A view over UTF-8 code units.

utf8_view public construct/copy/destruct

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

utf8_view public member functions

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

utf8_view friend functions

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

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

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

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


PrevUpHomeNext