pub fn eqlIgnoreCase(a: []const u8, b: []const u8) bool
Compares strings a and b case-insensitively and returns whether they are equal.
a
b
a: []const u8
b: []const u8
349 350 351 352 353 354 355
pub fn eqlIgnoreCase(a: []const u8, b: []const u8) bool { if (a.len != b.len) return false; for (a, 0..) |a_c, i| { if (toLower(a_c) != toLower(b[i])) return false; } return true; }
Compares strings
aandbcase-insensitively and returns whether they are equal.