def esc.high

cswap-bend-cli@0.1.0.0 · json/quote.bend:14

import cswap-bend-cli@0.1.0.0/json/quote.bend as Quote
import Base
import cswap-bend-cli@0.1.0.0/json/lex.bend as Lex

14def esc.high(ascii: Bool, +c: U32) -> String:
15  match ascii:
16    case False{}:
17      SCon{Chr{c}, SNil{}}
18    case True{}:
19      Lex.sel.s(U32.is_lt(c, 65536), uesc(c), uesc.pair(c))

Uses (8)

Used by (1)