Skip to main content

escape_name

Function escape_name 

pub fn escape_name(bytes: &[u8]) -> String
Expand description

bytes as one safe line of a page: \\, \n, \r and \t as written here, every other control character (and DEL) and every byte that is not UTF-8 as \xNN, any other character as it is. For the name of a file or a directory.