[−][src]Function papyrus::complete::word_break_start
pub fn word_break_start(s: &str, word_break_chars: &[char]) -> usize
Returns the start position of the last word which is broken by any of the characters.
Example
let s = "Hello, world!"; let b = papyrus::complete::word_break_start(s, &[' ']); assert_eq!(b, 7); assert_eq!(&s[b..], "world!");