You are here

private function JavaScriptPacker::_encode62 in Advanced CSS/JS Aggregation 7

Same name and namespace in other branches
  1. 8.4 advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  2. 8.2 advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  3. 8.3 advagg_js_minify/jspacker.inc \JavaScriptPacker::_encode62()
  4. 6 advagg_js_compress/jspacker.inc \JavaScriptPacker::_encode62()
  5. 7.2 advagg_js_compress/jspacker.inc \JavaScriptPacker::_encode62()

File

advagg_js_compress/jspacker.inc, line 403

Class

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);
  }
}