B64.utf8.decode.go: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/b64.bend as B64 Lines 70-77 of cswap-bend-cli@0.1.0.0/b64.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&start_line=70&end_line=77 import Base # Decode UTF-8 bytes (lenient on malformed input). def utf8.decode.go(bs: List<&2, U32>, +need: U32, +cp: U32) -> String: match bs: case Nil{}: SNil{} case Con{+b, t}: +cp2 = utf8.cp(b, need, cp) utf8.put(utf8.emit(b, need), cp2, utf8.decode.go(t, utf8.need(b, need), cp2)) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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=cswap-bend-cli@0.1.0.0/b64.bend&name=utf8.cp https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&name=utf8.emit https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&name=utf8.need https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&name=utf8.put