Skip to main content

escape_java

Function escape_java 

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

Escape a string for embedding in a Java string literal.

Delegates to crate::codegen::java_literal::escape_java_string_literal, the single place Java literal escaping is defined, so generated e2e sources and generated bindings cannot disagree about what a hostile value looks like in Java source.