def special

bend-toon-codec@0.1.0.0 · src/text.bend:90

import bend-toon-codec@0.1.0.0/src/text.bend as Text
import Base

90# A character that forces quotes anywhere in a string value: colon, double
91# quote, backslash, brackets, braces, control characters, or the delimiter.
92def special(+c: U32, +d: U32) -> Bool:
93  U32.is_eq(c, 58) || U32.is_eq(c, 34) || U32.is_eq(c, 92) || U32.is_eq(c, 91)
94    || U32.is_eq(c, 93) || U32.is_eq(c, 123) || U32.is_eq(c, 125)
95    || U32.is_lt(c, 32) || U32.is_eq(c, d)

Uses (5)

Used by (1)