Skip to main content

push_wtf8_pair

Function push_wtf8_pair 

Source
pub fn push_wtf8_pair(
    units: &[u16],
    name_out: &mut Vec<u8>,
    lower_out: &mut Vec<u8>,
)
Expand description

Decode UTF-16 (with possible unpaired surrogates) and append both the WTF-8 original and its folded form. The two outputs always grow by the same number of bytes.