focaccia

Function ascii_case_eq

Source
pub fn ascii_case_eq(left: &[u8], right: &[u8]) -> bool
Expand description

Check two byte strings for equality with ASCII case folding.

This function is implemented with ASCII folding functions in Rust core.

ยงExamples

assert!(ascii_case_eq(b"Artichoke Ruby", b"artichoke ruby"));
assert!(!ascii_case_eq(b"artichoke ruby", b"Artichoke"));