pub fn encode(text: &str) -> StringExpand description
Encodes Unicode as a STEP string literal body.
Printable ASCII is retained, apostrophes and backslashes are doubled, and
BMP runs use UTF-16BE \X2\ notation and supplementary characters use
UTF-32BE \X4\ notation.