def Pct.hex
import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxyimport Base
201# A hex digit's value, 16 for any other character.
202def Pct.hex(+c: U32) -> U32:
203 Pct.hex.go(c, Bool.and(U32.is_ge(c, 48), U32.is_le(c, 57)),
204 Bool.and(U32.is_ge(c, 65), U32.is_le(c, 70)), Bool.and(U32.is_ge(c, 97), U32.is_le(c, 102)))