MCPcopy Create free account
hub / github.com/Toulu-debug/enen / string10to64

Function string10to64

utils/validate_single.js:342–353  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

340
341function getCoordinate(c) {
342 function string10to64(d) {
343 var c = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-~".split("")
344 , b = c.length
345 , e = +d
346 , a = [];
347 do {
348 mod = e % b;
349 e = (e - mod) / b;
350 a.unshift(c[mod])
351 } while (e);
352 return a.join("")
353 }
354
355 function prefixInteger(a, b) {
356 return (Array(b).join(0) + a).slice(-b)

Callers 1

pretreatmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected