Skip to main content

find

Function find 

Source
pub fn find(
    src: &[u8],
    pat: &[u8],
    init: usize,
) -> Result<Option<Match>, PatError>
Expand description

Scan from init for the first match (PUC str_find_aux without the plain fast path). A leading ^ anchors the search to init.