def utf8.lead

bend-kit-protobuf@0.2.0.0 · protobuf.bend:695

import bend-kit-protobuf@0.2.0.0/protobuf.bend as Protobuf
import Base

695def utf8.lead(ascii: Bool, +b: U32, out: String) -> Result<&2, &2, Error, Utf8>:
696  match ascii:
697    case True{}:
698      Done{Utf8{0, 128, 191, 0, SCon{Chr{b}, out}}}
699    case False{}:
700      utf8.lead.high(U32.is_ge(b, 194) && U32.is_le(b, 244), b, out)

Uses (11)

Used by (1)