Definition at line 545 of file javascript_packer.inc.
◆ add()
ParseMaster::add |
( |
|
$expression, |
|
|
|
$replacement = '' |
|
) |
| |
Definition at line 563 of file javascript_packer.inc.
566 $length = 1 + preg_match_all($this->GROUPS, $this->_internalEscape((
string)$expression),
$out);
569 if (is_string($replacement)) {
571 if (preg_match($this->SUB_REPLACE, $replacement)) {
573 if (preg_match($this->INDEXED, $replacement)) {
575 $replacement = (int)(substr($replacement, 1)) - 1;
578 $quote = preg_match($this->QUOTE, $this->_internalEscape($replacement))
580 $replacement = array(
581 'fn' =>
'_backReferences',
583 'replacement' => $replacement,
592 if (!empty($expression)) $this->_add($expression, $replacement, $length);
593 else $this->_add(
'/^$/', $replacement, $length);
◆ exec()
ParseMaster::exec |
( |
|
$string | ) |
|
Definition at line 596 of file javascript_packer.inc.
598 $this->_escaped = array();
602 foreach ($this->_patterns as $reg) {
603 $regexp .=
'(' . substr($reg[self::EXPRESSION], 1, -1) .
')|';
605 $regexp = substr($regexp, 0, -1) .
'/';
608 $string = $this->_escape($string, $this->escapeChar);
609 $string = preg_replace_callback(
617 $string = $this->_unescape($string, $this->escapeChar);
619 return preg_replace($this->DELETED,
'', $string);
◆ reset()
◆ $escapeChar
ParseMaster::$escapeChar = '' |
◆ $ignoreCase
ParseMaster::$ignoreCase = false |
◆ EXPRESSION
const ParseMaster::EXPRESSION = 0 |
◆ LENGTH
const ParseMaster::LENGTH = 2 |
◆ REPLACEMENT
const ParseMaster::REPLACEMENT = 1 |
The documentation for this class was generated from the following file: