def utf8.put.ascii

ezx@1.11.0.0 · src/share/sha.bend:121

import ezx@1.11.0.0/src/share/sha.bend as Sha
import Base

121def utf8.put.ascii(ascii: Bool, +code: U32) -> String:
122  match ascii:
123    case True{}:
124      utf8.one(code)
125    case False{}:
126      utf8.put.two(U32.is_lt(code, 2048), code)

Uses (6)

Used by (1)