egui::text_selection::text_cursor_state

Function find_line_start

Source
pub fn find_line_start(text: &str, current_index: CCursor) -> CCursor
Expand description

Accepts and returns character offset (NOT byte offset!).