B64.utf8.len: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/b64.bend as B64 Lines 44-46 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=44&end_line=46 import Base # Continuation bytes a lead byte announces. def utf8.len(+b: U32) -> U32: sel(U32.is_lt(b, 128), 0, sel(U32.is_lt(b, 224), 1, sel(U32.is_lt(b, 240), 2, 3))) Uses (3): 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=cswap-bend-cli@0.1.0.0/b64.bend&name=sel