Skip to main content

string_value

Function string_value 

Source
pub fn string_value(s: &str) -> String
Expand description

Escape s as a Desktop Entry string value: a backslash, newline, tab or carriage return becomes its backslash escape, and a leading space becomes \s so it is not trimmed. This is the whole encoding for a plain string key such as TryExec.