Skip to main content

find_ascii_case_insensitive_from

Function find_ascii_case_insensitive_from 

Source
pub fn find_ascii_case_insensitive_from(
    text: &str,
    needle: &str,
    start: usize,
) -> Option<usize>
Expand description

Find an ASCII needle at or after byte offset start in text.

start need not be a UTF-8 character boundary because matching is performed on bytes. A successful position is always a boundary: an ASCII needle can only begin on an ASCII byte in the original string.