MCPcopy
hub / github.com/di-sukharev/opencommit / basicToDigit

Function basicToDigit

out/cli.cjs:2930–2941  ·  view source on GitHub ↗
(codePoint)

Source from the content-addressed store, hash-verified

2928 }
2929 var ucs2encode = (codePoints) => String.fromCodePoint(...codePoints);
2930 var basicToDigit = function(codePoint) {
2931 if (codePoint >= 48 && codePoint < 58) {
2932 return 26 + (codePoint - 48);
2933 }
2934 if (codePoint >= 65 && codePoint < 91) {
2935 return codePoint - 65;
2936 }
2937 if (codePoint >= 97 && codePoint < 123) {
2938 return codePoint - 97;
2939 }
2940 return base;
2941 };
2942 var digitToBasic = function(digit, flag) {
2943 return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
2944 };

Callers 1

decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…