Utf8.Utf8.fresh.st: def of bend-kube-runtime@0.2.0.0 Import: import bend-kube-runtime@0.2.0.0/src/utf8.bend as Utf8 Lines 42-48 of bend-kube-runtime@0.2.0.0/src/utf8.bend: https://jend.leeeet.dev/read.txt?path=bend-kube-runtime@0.2.0.0/src/utf8.bend&start_line=42&end_line=48 import Base # The fresh-byte case: the state and the chars a lead byte makes. def Utf8.fresh.st(+b: U32, +k: U32, mid: Bool) -> Utf8: match mid: case True{}: Utf8{U32.and(b, U32.shrn(63, U32.to_nat(k))), k} case False{}: Utf8{0, 0} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shrn https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-kube-runtime@0.2.0.0/src/utf8.bend&name=Utf8