def pct.step

bend-net-url@0.4.0.0 · url.bend:118

import bend-net-url@0.4.0.0/url.bend as Url
import Base

118def pct.step(st: Pd, +c: U32, racc: String) -> Pd & String:
119  match st:
120    case PdLit{}:
121      pct.lit(c, racc, U32.is_eq(c, 37))
122    case PdHi{}:
123      pct.hi(unhex(c), racc)
124    case PdLo{+x}:
125      pct.lo(x, unhex(c), racc)
126    case PdBad{}:
127      (PdBad{}, racc)

Uses (10)

Used by (1)