Skip to main content

decode_text

Function decode_text 

Source
pub fn decode_text(inside: &[u8]) -> Cow<'_, [u8]>
Expand description

Decode the inside of a text: DLE escapes removed. Zero-copy when there are none. The inside of a scanned text never ends in a lone DLE; one on an arbitrary slice is dropped.