def is_plain.char
import yaml-for-bend@0.1.1.0/emit.bend as Emitimport Base
54# What YAML may hold as it is: printable characters but the ones double
55# quotes escape.
56def is_plain.char(+x: U32) -> Bool:
57 Bool.or(Bool.and(U32.is_ge(x, 32), U32.is_le(x, 126)),
58 Bool.or(Bool.and(U32.is_ge(x, 160), U32.is_le(x, 55295)), Bool.or(Bool.and(U32.is_ge(x, 57344), U32.is_le(x, 65533)), U32.is_ge(x, 65536))))