Text.esc.char: def of bend-toon-codec@0.1.0.0 Import: import bend-toon-codec@0.1.0.0/src/text.bend as Text Lines 71-77 of bend-toon-codec@0.1.0.0/src/text.bend: https://jend.leeeet.dev/read.txt?path=bend-toon-codec@0.1.0.0/src/text.bend&start_line=71&end_line=77 import Base # One character inside quotes (section 7.1 encoder column). def esc.char(+c: U32) -> String: sel.s(U32.is_eq(c, 34), "\\\"", sel.s(U32.is_eq(c, 92), "\\\\", sel.s(U32.is_eq(c, 10), "\\n", sel.s(U32.is_eq(c, 13), "\\r", sel.s(U32.is_eq(c, 9), "\\t", esc.other(c)))))) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/text.bend&name=esc.other https://jend.leeeet.dev/definition.txt?path=bend-toon-codec@0.1.0.0/src/text.bend&name=sel.s