Skip to main content

atom

Function atom 

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

human-atom: every repository-derived scalar is rendered as a double-quoted ASCII JSON-style string. At most the first two hundred Unicode scalar values are kept, with a literal ... appended inside the quotes when any were omitted. Quote and backslash escape as \" and \\, printable ASCII stays literal, and every other scalar becomes a lowercase \uXXXX escape, non-BMP scalars as a UTF-16 surrogate pair, so CR, LF, tab, ESC, bidi controls, and ANSI bytes are never active terminal syntax.