Notch.esc.c: def of bend-kit-notch@0.4.0.0 Import: import bend-kit-notch@0.4.0.0/notch.bend as Notch Lines 96-110 of bend-kit-notch@0.4.0.0/notch.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-notch@0.4.0.0/notch.bend&start_line=96&end_line=110 import Base # JSON (RFC 8259 ยง7): quote, backslash and control chars are escaped. def esc.c(+c: U32, rest: String) -> String: match c: case 34: SCon{Chr{92}, SCon{Chr{34}, rest}} case 92: SCon{Chr{92}, SCon{Chr{92}, rest}} case 10: SCon{Chr{92}, SCon{'n', rest}} case 13: SCon{Chr{92}, SCon{'r', rest}} case 9: SCon{Chr{92}, SCon{'t', rest}} case _: esc.ctl(U32.is_lt(c, 32), c, rest) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char 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_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil https://jend.leeeet.dev/definition.txt?path=bend-kit-notch@0.4.0.0/notch.bend&name=esc.ctl