You are here

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

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

File

advagg_js_compress/jspacker.inc, line 698

Class

ParseMaster

Code

private function _backReferences($match, $offset) {
  $replacement = $this->buffer['replacement'];
  $quote = $this->buffer['quote'];
  $i = $this->buffer['length'];
  while ($i) {
    $replacement = str_replace('$' . $i--, $match[$offset + $i], $replacement);
  }
  return $replacement;
}