pub fn utf16_length_from_utf32(src: &[u32]) -> usizeExpand description
Count the number of code units that the UTF-32 string would require in UTF-16 format.
This function uses native endianness.
This function does not validate the input. It is acceptable to pass invalid UTF-32 strings but in such cases the result is implementation defined.