luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[allow(non_snake_case)]
pub fn equalsLower(lhs: &[u8], rhs: &[u8]) -> bool {
    if lhs.len() != rhs.len() {
        return false;
    }

    for i in 0..lhs.len() {
        if (lhs[i] as char).to_ascii_lowercase() != (rhs[i] as char).to_ascii_lowercase() {
            return false;
        }
    }

    true
}