Function ctru_sys::utf8_to_utf32
source · pub unsafe extern "C" fn utf8_to_utf32(
out: *mut u32,
in_: *const u8,
len: usize
) -> isize
Expand description
Convert a UTF-8 sequence into a UTF-32 sequence
Fills the output buffer up to len code units. Returns the number of code units that the input would produce; if it returns greater than len, the output has been truncated.
§Arguments
out
(direction out) - Output sequencein
(direction in) - Input sequence (null-terminated)len
(direction in) - Output length
§Returns
number of output code units produced -1 for error
Note: out is not null-terminated