Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › windows › testEqlIgnoreCase Private Function testEqlIgnoreCase Doc Source Private Function std.os.windows.testEqlIgnoreCase
fn testEqlIgnoreCase (comptime expect_eql : bool , comptime a : []const u8 , comptime b : []const u8 ) !void Params expect_eql : bool a : []const u8 b : []const u8 File os/windows.zig: 3762
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774 fn testEqlIgnoreCase (comptime expect_eql : bool , comptime a : []const u8 , comptime b : []const u8 ) !void {
try std .testing .expectEqual (expect_eql , eqlIgnoreCaseWtf8 (a , b ));
try std .testing .expectEqual (expect_eql , eqlIgnoreCaseWtf16 (
std .unicode .utf8ToUtf16LeStringLiteral (a ),
std .unicode .utf8ToUtf16LeStringLiteral (b ),
));
try comptime std .testing .expect (expect_eql == eqlIgnoreCaseWtf8 (a , b ));
try comptime std .testing .expect (expect_eql == eqlIgnoreCaseWtf16 (
std .unicode .utf8ToUtf16LeStringLiteral (a ),
std .unicode .utf8ToUtf16LeStringLiteral (b ),
));
}