def saslname.of

bend-kit-postgres@0.3.0.0 · scram.bend:29

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import Base

29# saslname (RFC 5802 §5.1): '=' as "=3D", ',' as "=2C".
30def saslname.of(+c: U32, +rest: String) -> String:
31  Bool.pick(String, U32.is_eq(c, 61), "=3D" ++ rest, Bool.pick(String, U32.is_eq(c, 44), "=2C" ++ rest, SCon{Chr{c}, rest}))

Uses (6)

Used by (1)