def Utf8.lead

bend-kube-runtime@0.2.0.0 · src/utf8.bend:34

import bend-kube-runtime@0.2.0.0/src/utf8.bend as Utf8
import Base

34# The lead byte's class: 0 ASCII, 1..3 continuation count, 4 invalid.
35def Utf8.lead(+b: U32) -> U32:
36  Utf8.lead.go(b, U32.is_lt(b, 128), U32.is_lt(b, 194), U32.is_lt(b, 224),
37    U32.is_lt(b, 240), U32.is_lt(b, 245))

Uses (3)

Used by (2)