PrevUpHomeNext

Function template next_allowed_line_break

boost::text::v1::next_allowed_line_break

Synopsis

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


template<code_point_range R> 
  unspecified next_allowed_line_break(R && r, std::ranges::iterator_t< R > it);

Description

Finds the next line break opportunity after it. This will be the first code point after the current line, or r.end() if no next line exists. Returns a line_break_result; in C++20 and later, if std::ranges::borrowed_range<R> is false, this function returns a std::ranges::dangling instead.

Returns a grapheme_iterator to the next line break opportunity after it. This will be the first grapheme after the current line, or r.end() if no next line exists. Returns a line_break_result; in C++20 and later, if std::ranges::borrowed_range<R> is false, this function returns a std::ranges::dangling instead.

Requires:

it is at the beginning of a line.

Requires:

it is at the beginning of a line.


PrevUpHomeNext