Skip to main content

getkeystring

Function getkeystring 

Source
pub fn getkeystring(s: &str) -> (String, usize)
Expand description

Parse getkeystring escape sequences (from utils.c getkeystring) Handles \n \t \r \e \a \b \f \v \ ' " \xNN \uNNNN \UNNNNNNNN \0NNN Port of getkeystring(char *s, int *len, int how, int *misc) from Src/utils.c:6915. WARNING: param names don’t match C — Rust=(s) vs C=(s, len, how, misc)