fn escapeStringWithFn(allocator: std.mem.Allocator, input: []const u8, comptime keepUnescaped: fn (u8) bool) std.mem.Allocator.Error![]u8

Parameters

allocator: std.mem.Allocator,
input: []const u8,
keepUnescaped: fn (u8) bool,