|
@@ 1661-1671 (lines=11) @@
|
| 1658 |
|
$this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next |
| 1659 |
|
} |
| 1660 |
|
|
| 1661 |
|
protected function copy_skip($chars) |
| 1662 |
|
{ |
| 1663 |
|
$pos = $this->pos; |
| 1664 |
|
$len = strspn($this->doc, $chars, $pos); |
| 1665 |
|
$this->pos += $len; |
| 1666 |
|
$this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next |
| 1667 |
|
if ($len===0) { |
| 1668 |
|
return ''; |
| 1669 |
|
} |
| 1670 |
|
return substr($this->doc, $pos, $len); |
| 1671 |
|
} |
| 1672 |
|
|
| 1673 |
|
protected function copy_until($chars) |
| 1674 |
|
{ |
|
@@ 1673-1680 (lines=8) @@
|
| 1670 |
|
return substr($this->doc, $pos, $len); |
| 1671 |
|
} |
| 1672 |
|
|
| 1673 |
|
protected function copy_until($chars) |
| 1674 |
|
{ |
| 1675 |
|
$pos = $this->pos; |
| 1676 |
|
$len = strcspn($this->doc, $chars, $pos); |
| 1677 |
|
$this->pos += $len; |
| 1678 |
|
$this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next |
| 1679 |
|
return substr($this->doc, $pos, $len); |
| 1680 |
|
} |
| 1681 |
|
|
| 1682 |
|
protected function copy_until_char($char) |
| 1683 |
|
{ |