Function encoding_rs::mem::ensure_utf16_validity
source · pub fn ensure_utf16_validity(buffer: &mut [u16])
Expand description
Replaces unpaired surrogates in the input with the REPLACEMENT CHARACTER.
pub fn ensure_utf16_validity(buffer: &mut [u16])
Replaces unpaired surrogates in the input with the REPLACEMENT CHARACTER.