Skip to main content

find_word

Function find_word 

Source
pub fn find_word(
    bytes: &[u8],
    word: &[u8],
    from: usize,
    rule: WordBoundary,
) -> Option<usize>
Expand description

Find word at or after from, as a whole word under rule (see is_whole_word). Returns the offset of its first byte.