| @@ 330-334 (lines=5) @@ | ||
| 327 | if ($k) { |
|
| 328 | $encoded = ''; |
|
| 329 | $encoded = $this->_encode(array_slice($decoded, $last_begin, (($k) - $last_begin))); |
|
| 330 | if ($encoded) { |
|
| 331 | $output .= $encoded; |
|
| 332 | } else { |
|
| 333 | $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($k) - $last_begin))); |
|
| 334 | } |
|
| 335 | $output .= chr($decoded[$k]); |
|
| 336 | } |
|
| 337 | $last_begin = $k + 1; |
|
| @@ 346-350 (lines=5) @@ | ||
| 343 | $inp_len = sizeof($decoded); |
|
| 344 | $encoded = ''; |
|
| 345 | $encoded = $this->_encode(array_slice($decoded, $last_begin, (($inp_len) - $last_begin))); |
|
| 346 | if ($encoded) { |
|
| 347 | $output .= $encoded; |
|
| 348 | } else { |
|
| 349 | $output .= $this->_ucs4_to_utf8(array_slice($decoded, $last_begin, (($inp_len) - $last_begin))); |
|
| 350 | } |
|
| 351 | return $output; |
|
| 352 | } else { |
|
| 353 | if (false !== ($output = $this->_encode($decoded))) { |
|