Skip to main content

escape_string

Function escape_string 

Source
pub fn escape_string(text: &str) -> String
Expand description

Escape a string for a C-family string literal.

The four languages agree on these escapes; where they do not — a Rust raw string, a Java unicode escape — the renderer that needs the difference does it itself.