pub fn printStringEscaped(w: *Writer, bytes: []const u8) Error!void w: *Writerbytes: []const u8WriteFailedSee the Writer implementation for detailed diagnostics.
1570
1571
1572
1573
1574pub fn printStringEscaped(w: *Writer, bytes: []const u8) Error!void {
try w.writeByte('"');
try std.zig.stringEscape(bytes, w);
try w.writeByte('"');
}
Prints a double quote, then escapes a string according to Zig string literal rules, then a double quote.