You are here

constant JavaScriptPacker::JSFUNCTION_unpack in Advanced CSS/JS Aggregation 7

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

File

advagg_js_compress/jspacker.inc, line 476

Class

JavaScriptPacker

Code

const JSFUNCTION_unpack = 'function($packed, $ascii, $count, $keywords, $encode, $decode) {
    while ($count--) {
        if ($keywords[$count]) {
            $packed = $packed.replace(new RegExp(\'\\\\b\' + $encode($count) + \'\\\\b\', \'g\'), $keywords[$count]);
        }
    }
    return $packed;
}';