PrevUpHomeNext

Struct template break_view

boost::text::break_view

Synopsis

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

template<typename CPIter, typename CPSentinel, typename PrevFunc, 
         typename NextFunc, typename Subrange = utf32_view<CPIter> > 
struct break_view : public stl_interfaces::view_interface< break_view< CPIter, CPSentinel, PrevFunc, NextFunc, utf32_view< CPIter > > >
{
  // types
  typedef unspecified iterator;
  typedef unspecified sentinel;

  // construct/copy/destruct
  break_view();
  break_view(CPIter, CPSentinel, PrevFunc, NextFunc);

  // public member functions
  iterator begin() const;
  sentinel end() const;
  PrevFunc && prev_func();
  NextFunc && next_func();
};

Description

Represents a bidirectionally-iterable range of non-overlapping code point subranges. Each code point subrange represents some semantically significant segment, the semantics of which are controlled by the PrevFunc and NextFunc template parameters. For instance, if NextFunc is next_paragraph_break, the subranges produced by break_view will be paragraphs. Each subrange is lazily produced; an output subrange is not produced until a view iterator is dereferenced.

break_view public construct/copy/destruct

  1. break_view();
  2. break_view(CPIter first, CPSentinel last, PrevFunc prev_func, 
               NextFunc next_func);

break_view public member functions

  1. iterator begin() const;
  2. sentinel end() const;
  3. PrevFunc && prev_func();

    Moves the contained PrevFunc out of *this.

  4. NextFunc && next_func();

    Moves the contained NextFunc out of *this.


PrevUpHomeNext