Skip to main content

line_break_opportunities

Function line_break_opportunities 

pub fn line_break_opportunities(text: &str) -> IntoIter<(usize, LineBreakKind)>
Expand description

Iterate byte offsets where a line may or must end according to Unicode Standard Annex #14. Every offset is a UTF-8 boundary and the final text boundary is always returned as mandatory.