formatEscapeChar
Deprecated, use double quoted escape to print paths.
Function parameters
Parameters
Useful to make `Path` a key in `std.ArrayHashMap`.
Types
- TableAdapter
- Useful to make `Path` a key in `std.ArrayHashMap`.
Functions in this namespace
Functions
- fmtEscapeChar
- Deprecated, use double quoted escape to print paths.
- formatEscapeChar
- Deprecated, use double quoted escape to print paths.
Source
Implementation
pub fn formatEscapeChar(path: Path, writer: *std.io.Writer) std.io.Writer.Error!void {
if (path.root_dir.path) |p| {
for (p) |byte| try std.zig.charEscape(byte, writer);
if (path.sub_path.len > 0) try writer.writeByte(fs.path.sep);
}
if (path.sub_path.len > 0) {
for (path.sub_path) |byte| try std.zig.charEscape(byte, writer);
}
}