MCPcopy Index your code
hub / github.com/nodejs/node / base64FormatDecode

Function base64FormatDecode

test/fixtures/snapshot/typescript.js:90483–90490  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

90481 ts.Debug.fail("".concat(value, ": not a base64 value"));
90482 }
90483 function base64FormatDecode(ch) {
90484 return ch >= 65 /* CharacterCodes.A */ && ch <= 90 /* CharacterCodes.Z */ ? ch - 65 /* CharacterCodes.A */ :
90485 ch >= 97 /* CharacterCodes.a */ && ch <= 122 /* CharacterCodes.z */ ? ch - 97 /* CharacterCodes.a */ + 26 :
90486 ch >= 48 /* CharacterCodes._0 */ && ch <= 57 /* CharacterCodes._9 */ ? ch - 48 /* CharacterCodes._0 */ + 52 :
90487 ch === 43 /* CharacterCodes.plus */ ? 62 :
90488 ch === 47 /* CharacterCodes.slash */ ? 63 :
90489 -1;
90490 }
90491 function isSourceMappedPosition(value) {
90492 return value.sourceIndex !== undefined
90493 && value.sourcePosition !== undefined;

Callers 1

base64VLQFormatDecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected