pub fn utf8ToUtf16Le(utf16le: []u16, utf8: []const u8) error utf16le: []u16utf8: []const u81215
1216
1217pub fn utf8ToUtf16Le(utf16le: []u16, utf8: []const u8) error{InvalidUtf8}!usize {
return utf8ToUtf16LeImpl(utf16le, utf8, .cannot_encode_surrogate_half);
}
Returns index of next character. If exact fit, returned index equals output slice length. Assumes there is enough space for the output.