PrevUpHomeNext

Function template prev_word_break

boost::text::v1::prev_word_break

Synopsis

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


template<code_point_iter I, std::sentinel_for< I > S, 
         word_prop_func WordPropFunc = word_prop_callable, 
         word_break_func WordBreakFunc = untailored_word_break> 
  I prev_word_break(I first, I it, S last, 
                    WordPropFunc const & word_prop = WordPropFunc{}, 
                    WordBreakFunc const & word_break = WordBreakFunc{});

Description

Finds the nearest word break at or before before it. If it == first, that is returned. Otherwise, the first code point of the word that it is within is returned (even if it is already at the first code point of a word).

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


PrevUpHomeNext