| @@ 214-220 (lines=7) @@ | ||
| 211 | } elseif (($n === 'x') || ($n === 'X')) { |
|
| 212 | $def = $n; |
|
| 213 | ++$this->p; |
|
| 214 | for (; $this->p < min($this->length, $this->p + 2); ++$this->p) { |
|
| 215 | $n = $this->getNextChar(); |
|
| 216 | if (!ctype_xdigit($n)) { |
|
| 217 | break; |
|
| 218 | } |
|
| 219 | $def .= $n; |
|
| 220 | } |
|
| 221 | $str .= chr((int) hexdec($def)); |
|
| 222 | } else { |
|
| 223 | $str .= $c; |
|
| @@ 203-209 (lines=7) @@ | ||
| 200 | } elseif (ctype_digit($n)) { |
|
| 201 | $def = $n; |
|
| 202 | ++$this->p; |
|
| 203 | for (; $this->p < min($this->length, $this->p + 2); ++$this->p) { |
|
| 204 | $n = $this->getNextChar(); |
|
| 205 | if (!ctype_digit($n)) { |
|
| 206 | break; |
|
| 207 | } |
|
| 208 | $def .= $n; |
|
| 209 | } |
|
| 210 | $str .= chr((int) $def); |
|
| 211 | } elseif (($n === 'x') || ($n === 'X')) { |
|
| 212 | $def = $n; |
|