[−][src]Function places::match_impl::next_search_candidate
fn next_search_candidate(to_search: &str, search_for: char) -> Option<usize>
A port of nextSearchCandidate in the desktop places's SQLFunctions.cpp:
Scan forward through UTF-8 text until the next potential character that could match a given codepoint when lower-cased (false positives are okay). This avoids having to actually parse the UTF-8 text, which is slow.
It returns the byte index of the first character that could possibly match.