MCPcopy Index your code
hub / github.com/RustPython/RustPython / UB64

Function UB64

Lib/_pycodecs.py:821–831  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

819
820
821def UB64(c):
822 if (c) == b"+":
823 return 62
824 elif (c) == b"/":
825 return 63
826 elif (c) >= b"a":
827 return ord(c) - 71
828 elif (c) >= b"A":
829 return ord(c) - 65
830 else:
831 return ord(c) + 4
832
833
834def ENCODE(ch, bits):

Callers

nothing calls this directly

Calls 1

ordFunction · 0.85

Tested by

no test coverage detected