pub fn is_whole_word(text: &[u16], start: usize, len: usize) -> bool
Whether the match start..start + len (UTF-16 units, as PDFKit counts) in text stands as whole words: no letter, digit or underscore touches either end.
start..start + len
text