[−][src]Function backslash::escape_ascii
pub fn escape_ascii(input: &str) -> Result<String, FromUtf8Error>
Escape ASCII 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 ASCII escapes and Byte escapes is that the maximum value for a hex
escape in escape_ascii
is 0x7F.