Skip to main content

any_starts_with_ignore_ascii_case

Function any_starts_with_ignore_ascii_case 

pub fn any_starts_with_ignore_ascii_case<T, I>(s: T, sub_iter: I) -> bool
where T: AsRef<[u8]>, I: IntoIterator, <I as IntoIterator>::Item: AsRef<[u8]>,
Expand description

Returns true if s starts with any prefix from sub_iter, using ASCII case insensitive comparison.

Iteration order does not matter for the result, only for the amount of work performed.