Skip to main content

encode_codepoint

Function encode_codepoint 

Source
pub fn encode_codepoint(out: &mut Vec<u8>, cp: u32, order: ByteOrder)
Expand description

Encode a scalar (including a surrogate) as one or two UTF-16 units.