Function eql [src]

Prototype

pub fn eql(self: @This(), a: []const u8, b: []const u8) bool

Parameters

self: @This()a: []const u8b: []const u8

Source

pub fn eql(self: @This(), a: []const u8, b: []const u8) bool { _ = self; if (native_os == .windows) { var it_a = unicode.Wtf8View.initUnchecked(a).iterator(); var it_b = unicode.Wtf8View.initUnchecked(b).iterator(); while (true) { const c_a = it_a.nextCodepoint() orelse break; const c_b = it_b.nextCodepoint() orelse return false; if (upcase(c_a) != upcase(c_b)) return false; } return if (it_b.nextCodepoint()) |_| false else true; } return std.hash_map.eqlString(a, b); }