pub fn hexEscape(bytes: []const u8, case: std.fmt.Case) HexEscape 514
515
516
517
518
519pub fn hexEscape(bytes: []const u8, case: std.fmt.Case) HexEscape {
return .{ .bytes = bytes, .charset = switch (case) {
.lower => HexEscape.lower_charset,
.upper => HexEscape.upper_charset,
} };
}
Replaces non-ASCII bytes with hex escapes.