Function ctru_sys::utf32_to_utf16

source ·
pub unsafe extern "C" fn utf32_to_utf16(
    out: *mut u16,
    in_: *const u32,
    len: usize
) -> isize
Expand description

Convert a UTF-32 sequence into a UTF-16 sequence

§Arguments

  • out (direction out) - Output sequence
  • in (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