You are here

private function ParseMaster::_escape in Advanced CSS/JS Aggregation 8.3

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

File

advagg_js_minify/jspacker.inc, line 740

Class

ParseMaster

Code

private function _escape($string, $escapeChar) {
  if ($escapeChar) {
    $this->buffer = $escapeChar;
    return preg_replace_callback('/\\' . $escapeChar . '(.)' . '/', array(
      &$this,
      '_escapeBis',
    ), $string);
  }
  else {
    return $string;
  }
}