Function encode_utf16
Source pub unsafe extern "C" fn encode_utf16(
out: *mut u16,
in_: u32,
) -> isize
Expand description
Convert a UTF-32 codepoint into a UTF-16 sequence
§Arguments
out (direction out) - Output sequence
in (direction in) - Input codepoint
§Returns
number of output code units produced
-1 for error
Note: out must be able to store 2 code units