Skip to main content

word_start

Function word_start 

Source
pub fn word_start(text: &str, caret: usize) -> usize
Expand description

Byte offset where the word ending at caret starts: the identifier run before it, or an open 'quoted name (spaces and all).