Skip to main content

encode_utf16

Function encode_utf16 

Source
pub fn encode_utf16(out: &mut Vec<u16>, cp: u32)
Expand description

Encode a 32-bit value into UTF-16, appending to out. If the value is a part of a surrogate pair, it is encoded without any conversion. Port of encodeUTF16 (UTF8.h:197-210).