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.

wtf16LeToWtf8

unicode.wtf16LeToWtf8
pub fn wtf16LeToWtf8(wtf8: []u8, wtf16le: []const u16) usize

File

lib/std/unicode.zig:1788

Code

pub fn wtf16LeToWtf8(wtf8: []u8, wtf16le: []const u16) usize {
    return utf16LeToUtf8Impl(wtf8, wtf16le, .can_encode_surrogate_half) catch |err| switch (err) {};
}