You are here

private function ParseMaster::_replace_name in Advanced CSS/JS Aggregation 6

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

File

advagg_js_compress/jspacker.inc, line 708

Class

ParseMaster

Code

private function _replace_name($match, $offset) {
  $length = strlen($match[$offset + 2]);
  $start = $length - max($length - strlen($match[$offset + 3]), 0);
  return substr($match[$offset + 1], $start, $length) . $match[$offset + 4];
}