Skip to main content

ends_with_ignore_ascii_case

Function ends_with_ignore_ascii_case 

pub fn ends_with_ignore_ascii_case<T1, T2>(s: T1, sub: T2) -> bool
where T1: AsRef<[u8]>, T2: AsRef<[u8]>,
Expand description

Returns true if s ends with sub, using ASCII case insensitive comparison.

If sub is empty, this returns true.