fn eq_ignore_ascii_case(a: &str, b: &str) -> bool {
    fn to_ascii_uppercase(c: u8) -> u8 {
        if c >= b'a' && c <= b'z' {
            c - b'a' + b'A'
        } else {
            c
        }
    }

    if a.len() == b.len() {
        a.bytes()
            .zip(b.bytes())
            .all(|(a, b)| to_ascii_uppercase(a) == to_ascii_uppercase(b))
    } else {
        false
    }
}
// Reimplemented here because std::ascii is not available in libcore
Reimplemented here because std::ascii is not available in libcore
Reimplemented here because std :: ascii is not available in libcore
fn eq_ignore_ascii_case(a: &str, b: &str) -> bool {
    fn to_ascii_uppercase(c: u8) -> u8 {
        if c >= b'a' && c <= b'z' {
            c - b'a' + b'A'
        } else {
            c
        }
    }
    if a.len() == b.len() {
        a.bytes()
            .zip(b.bytes())
            .all(|(a, b)| to_ascii_uppercase(a) == to_ascii_uppercase(b))
    } else {
        false
    }
}
fn eq_ignore_ascii_case ( a : & str , b : & str ) -> bool { fn to_ascii_uppercase ( c : u8 ) -> u8 { if c >= b'a' && c <= b'z' { c - b'a' + b'A' } else { c } } if a . len ( ) == b . len ( ) { a . bytes ( ) . zip ( b . bytes ( ) ) . all ( | ( a , b ) | to_ascii_uppercase ( a ) == to_ascii_uppercase ( b ) ) } else { false } }
Reimplemented here because std::ascii is not available in libcore
Reimplemented here because std :: ascii is not available in libcore
a
&str
b
&str
a
&str
b
&str