B64.utf8.need: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/b64.bend as B64 Lines 51-55 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=51&end_line=55 import Base # The decoder state is (need, cp): continuation bytes still due and the code # point so far. These three give the next need, the next cp, and whether cp # is complete. def utf8.need(+b: U32, +need: U32) -> U32: sel(U32.is_eq(need, 0), utf8.len(b), (need - 1 : U32)) Uses (5): 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=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&name=sel https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/b64.bend&name=utf8.len