macro_rules! eq_ignore_ascii_case {
    ($lhs:expr, $rhs:expr) => { ... };
}
Expand description

Checks that two (string) slices are an ASCII case-insensitive match.

The input type must be one of:

The output type is bool.

§Examples

use const_str::eq_ignore_ascii_case;

const _: () = {
    assert!(eq_ignore_ascii_case!("Ferris", "FERRIS"));     // true
    assert!(!eq_ignore_ascii_case!(b"Ferris", b"FERRI"));   // false

    assert!(eq_ignore_ascii_case!("Ferrös", "FERRöS"));     // true
    //                              ^^^ ^     ^^^ ^     

    assert!(!eq_ignore_ascii_case!("Ferrös", "FERRÖS"));    // false
    //                                  ^         ^
};