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

Dependency-neutral byte-stable ASCII matching helpers. Re-exported here to preserve the SQL parser’s existing public API; SQL keyword boundary and literal-segment handling remain local to this module. Find an ASCII needle at or after byte offset start in text.

start need not be a UTF-8 character boundary because matching is done on bytes. A successful offset always starts at an ASCII byte and is therefore a UTF-8 boundary in the unchanged original input.