def safe

emerging-ezhttp@0.21.0.0 · src/pct.bend:17

import emerging-ezhttp@0.21.0.0/src/pct.bend as Pct
import Base

17# a character a form writes as itself: unreserved, or "/" when `slash` (the
18# path form) keeps it
19def safe(slash: Bool, +cp: U32) -> Bool:
20  Bool.or(unreserved(cp), Bool.and(U32.is_eq(cp, 47), slash))

Uses (6)

Used by (1)