def printable
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport Base
68# printable (RFC 5802 §7): %x21-2B / %x2D-7E.
69def printable(s: String) -> Bool:
70 match s:
71 case SNil{}:
72 True{}
73 case SCon{Chr{+c}, t}:
74 Bool.and(Bool.and(U32.is_le(33, c), U32.is_le(c, 126)), Bool.and(U32.is_ne(c, 44), printable(t)))