def code.c1

emerging-ezhttp@0.21.0.0 · src/unescape.bend:98

import emerging-ezhttp@0.21.0.0/src/unescape.bend as Unescape
import Base

98# 0x80 to 0x9F as the table says
99def code.c1(+n: U32, c1: Bool) -> String:
100  match c1:
101    case True{}:
102      SCon{Chr{nth(w1252(), U32.to_nat(U32.sub(n, 128)))}, ""}
103    case False{}:
104      code.range(n, Bool.or(Bool.and(U32.is_le(55296, n), U32.is_le(n, 57343)),
105        U32.is_lt(1114111, n)))

Uses (13)

Used by (1)