def utf8.four

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

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

101def utf8.four(+code: U32) -> String:
102  SCon{utf8.byte((240 .|. U32.shrn(code, 18n) : U32)),
103    SCon{utf8.byte((128 .|. (U32.shrn(code, 12n) .&. 63 : U32) : U32)),
104      SCon{utf8.byte((128 .|. (U32.shrn(code, 6n) .&. 63 : U32) : U32)),
105        SCon{utf8.byte((128 .|. (code .&. 63 : U32) : U32)), SNil{}}}}}

Uses (6)

Used by (1)