PrevUpHomeNext

Function template next_word_break

boost::text::v1::next_word_break

Synopsis

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


template<code_point_range R, word_prop_func WordPropFunc = word_prop_callable, 
         word_break_func WordBreakFunc = untailored_word_break> 
  std::ranges::borrowed_iterator_t< R > 
  next_word_break(R && r, std::ranges::iterator_t< R > it, 
                  WordPropFunc const & word_prop = WordPropFunc{}, 
                  WordBreakFunc const & word_break = WordBreakFunc{});

Description

Finds the next word break after it. This will be the first code point after the current word, or r.end() if no next word exists.

See the Text Segmentation section of the tutorial for WordPropFunc semantics.

Returns a grapheme_iterator to the next word break after it. This will be the first grapheme after the current word, or r.end() if no next word exists.

See the Text Segmentation section of the tutorial for WordPropFunc semantics.

Requires:

it is at the beginning of a word.

Requires:

it is at the beginning of a word.


PrevUpHomeNext