Skip to main content

prev_grapheme_boundary

Function prev_grapheme_boundary 

Source
pub fn prev_grapheme_boundary(s: &str, from: usize) -> usize
Expand description

Previous extended grapheme cluster boundary before from.

Drives CursorMotion::CharLeft, so Left / Shift+Left / forward-word fallbacks all step whole clusters (Qt previousCursorPosition, Slint GraphemeCursor::prev_boundary). Backspace does NOT use this; see prev_code_point_boundary.