def b64.pads

bend-kit-bytes@0.3.3.0 · bytes.bend:724

import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import Base

724# The count of '=' at the end of s.
725def b64.pads(s: String, +run: U32) -> U32:
726  match s:
727    case SNil{}:
728      run
729    case SCon{Chr{+c}, t}:
730      b64.pads(t, Bool.pick(U32, U32.is_eq(c, 61), (run + 1 : U32), 0))

Uses (6)

Used by (1)