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 library itself.

fmtWtf16LeAsUtf8Lossy

Format a path encoded as WTF-16 LE for display as UTF-8. Return a Formatter for a (potentially ill-formed) UTF-16 LE path. The path will be converted to valid UTF-8 during formatting. This is a lossy conversion if the path contains any unpaired surrogates. Unpaired surrogates are replaced by the replacement character (U+FFFD).

path.fmtWtf16LeAsUtf8Lossy
pub const fmtWtf16LeAsUtf8Lossy = std.unicode.fmtUtf16Le

File

lib/std/fs/path.zig:2567

Code

pub const fmtWtf16LeAsUtf8Lossy = std.unicode.fmtUtf16Le