def B64.val
import bend-kube-runtime@0.2.0.0/src/base64.bend as Base64import Base
24# The 6-bit value of a char: 64 for skipped chars, 65 for bad ones.
25def B64.val(+c: Char) -> U32:
26 match c:
27 case '+':
28 62
29 case '/':
30 63
31 case '=':
32 64
33 case ' ':
34 64
35 case '\n':
36 64
37 case '\r':
38 64
39 case '\t':
40 64
41 case Chr{+x}:
42 B64.val.go(x, Char.is_upper(Chr{x}), Char.is_lower(Chr{x}), Char.is_digit(Chr{x}))