lost+found/src/bin.js
function _gpfFromBaseANY (base, text, pad) {
    var baseLength = base.length,
        result = 0,
        idx = _gpfSkipPad(text, pad || base.charAt(0));
    while (idx < text.length) {
        result = baseLength * result + base.indexOf(text.charAt(idx++));
    }
    return result;
}
function _gpfFromBaseANY (base, text, pad) {
    var baseLength = base.length,
        result = 0,
        idx = _gpfSkipPad(text, pad || base.charAt(0));
    while (idx < text.length) {
        result = baseLength * result + base.indexOf(text.charAt(idx++));
    }
    return result;
}
function _gpfFromBaseANY ( base , text , pad ) { var baseLength = base . length , result = 0 , idx = _gpfSkipPad ( text , pad || base . charAt ( 0 ) ) ; while ( idx < text . length ) { result = baseLength * result + base . indexOf ( text . charAt ( idx ++ ) ) ; } return result ; }
Decodes the text value using the specified base.

@param {String} base
@param {String} text
@param {String} [pad=base.charAt(0)] pad
@return {Number}
Decodes the text value using the specified base .