Skip to main content

word_position

Function word_position 

pub fn word_position(value: &str, dir: isize, from: usize) -> usize
Expand description

EditBox.getWordPosition(dir, from): the character index dir words away from from. Forward, past the rest of the word and its spaces; backward, over any spaces to the start of the word.