def Utf8.next.go
import bend-kube-runtime@0.2.0.0/src/utf8.bend as Utf8import Base
72# The state after byte b.
73def Utf8.next.go(+code: U32, +need: U32, +b: U32, cont: Bool, idle: Bool) -> Utf8:
74 match cont idle:
75 case True{} False{}:
76 Utf8.next.cont(((code << 6n) .|. (b .&. 63) : U32), (need - 1 : U32))
77 case _ _:
78 Utf8.fresh.st(b, Utf8.lead(b), Utf8.fresh.mid(Utf8.lead(b)))