[][src]Function backslash::escape_bytes

pub fn escape_bytes(input: &str) -> Result<String, FromUtf8Error>

Escape Byte escapes in input

Turns sequences that look like escape characters into actual escape characters, i.e. a backslash followed by an 'n' turns into a proper newline character.

The only difference between Byte escapes and ASCII escapes is that the maximum value for a hex escape in escape_bytes is 0xFF.