def unb64u.c

bend-kit-jwt@0.11.0.1 · jwt.bend:106

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import Base

106# The standard alphabet's char for c. '+', '/', '=' and NUL become NUL, which no decoder accepts.
107def unb64u.c(+c: U32) -> U32:
108  match c:
109    case 45:
110      43
111    case 95:
112      47
113    case 43:
114      0
115    case 47:
116      0
117    case 61:
118      0
119    case _:
120      c

Uses (4)

Used by (1)