Same name in other branches
  1. 5.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  2. 6.0.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  3. 7.x-1.x advagg_js_compress/jspacker.inc \JavaScriptPacker::_encode62()
  4. 7.x-2.x advagg_js_compress/jspacker.inc \JavaScriptPacker::_encode62()
  5. 8.x-2.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  6. 8.x-4.x advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()

Fichier

advagg_js_minify/jspacker.inc, line 419

Classe

JavaScriptPacker

Code

private function _encode62($charCode) {
    $res = '';
    if ($charCode >= $this->_encoding) {
        $res = $this->_encode62((int) ($charCode / $this->_encoding));
    }
    $charCode = $charCode % $this->_encoding;
    if ($charCode > 35) {
        return $res . chr($charCode + 29);
    }
    else {
        return $res . base_convert($charCode, 10, 36);
    }
}