Skip to main content

getkeystring

Function getkeystring 

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

Port of getkeystring() from Src/utils.c:6915 — C decl getkeystring(char *s, int *len, int how, int *misc).

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