You are here

private function ParseMaster::_unescape in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.2 advagg_js_minify/jspacker.inc \ParseMaster::_unescape()
  2. 8.3 advagg_js_minify/jspacker.inc \ParseMaster::_unescape()
  3. 6 advagg_js_compress/jspacker.inc \ParseMaster::_unescape()
  4. 7.2 advagg_js_compress/jspacker.inc \ParseMaster::_unescape()
  5. 7 advagg_js_compress/jspacker.inc \ParseMaster::_unescape()
1 call to ParseMaster::_unescape()
ParseMaster::exec in advagg_js_minify/jspacker.inc

File

advagg_js_minify/jspacker.inc, line 760

Class

ParseMaster

Code

private function _unescape($string, $escapeChar) {
  if ($escapeChar) {
    $regexp = '/' . '\\' . $escapeChar . '/';
    $this->buffer = array(
      'escapeChar' => $escapeChar,
      'i' => 0,
    );
    return preg_replace_callback($regexp, array(
      &$this,
      '_unescapeBis',
    ), $string);
  }
  else {
    return $string;
  }
}