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

Function _FROM_BASE64

Lib/_pycodecs.py:852–863  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

850
851
852def _FROM_BASE64(ch):
853 if ch == ord("+"):
854 return 62
855 if ch == ord("/"):
856 return 63
857 if ch >= ord("a"):
858 return ch - 71
859 if ch >= ord("A"):
860 return ch - 65
861 if ch >= ord("0"):
862 return ch - ord("0") + 52
863 return -1
864
865
866def _DECODE_DIRECT(ch):

Callers 1

PyUnicode_DecodeUTF7Function · 0.85

Calls 1

ordFunction · 0.85

Tested by

no test coverage detected