Skip to main content

decode_string

Function decode_string 

Source
pub fn decode_string(raw: &[u8]) -> String
Expand description

Decodes the escapes of ISO 10303-21 strings: \\, \S\c, \X\hh, \X2\hhhh…\X0\ and \X4\hhhhhhhh…\X0\; \P?\ code page switches are dropped. Bytes that are not escapes are read as UTF-8 (lossily), which many exporters write directly.