def esc.high
import cswap-bend-cli@0.1.0.0/json/quote.bend as Quoteimport 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))