JSON.escape_char_from_class: def of qasim-bend-kit@0.1.0.2 Import: import qasim-bend-kit@0.1.0.2/libs/JSON.bend as JSON Lines 236-272 of qasim-bend-kit@0.1.0.2/libs/JSON.bend: https://jend.leeeet.dev/read.txt?path=qasim-bend-kit@0.1.0.2/libs/JSON.bend&start_line=236&end_line=272 import Base def escape_char_from_class(character: Char, class: EscapeClass) -> String: match class: case Raw{}: SCon{character, SNil{}} case Backslash{}: "\\\\" case Quote{}: "\\\"" case Control0{}: "\\u0000" case Control1{}: "\\u0001" case Control2{}: "\\u0002" case Control3{}: "\\u0003" case Control4{}: "\\u0004" case Control5{}: "\\u0005" case Control6{}: "\\u0006" case Control7{}: "\\u0007" case Control8{}: "\\b" case Control9{}: "\\t" case Control10{}: "\\n" case Control11{}: "\\u000b" case Control12{}: "\\f" case Control13{}: "\\r" case Control14{}: "\\u000e" case Control15{}: "\\u000f" case Control16{}: "\\u0010" case Control17{}: "\\u0011" case Control18{}: "\\u0012" case Control19{}: "\\u0013" case Control20{}: "\\u0014" case Control21{}: "\\u0015" case Control22{}: "\\u0016" case Control23{}: "\\u0017" case Control24{}: "\\u0018" case Control25{}: "\\u0019" case Control26{}: "\\u001a" case Control27{}: "\\u001b" case Control28{}: "\\u001c" case Control29{}: "\\u001d" case Control30{}: "\\u001e" case Control31{}: "\\u001f" Uses (3): 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=qasim-bend-kit@0.1.0.2/libs/JSON.bend&name=EscapeClass