MCPcopy Create free account
hub / github.com/Semporia/Scripts / string10to64

Function string10to64

JDJRValidator_Pure.js:344–355  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

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

Callers 1

pretreatmentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected