| @@ 60-74 (lines=15) @@ | ||
| 57 | 0x9F => 0x0178, |
|
| 58 | ]; |
|
| 59 | ||
| 60 | public function toArray($delim = '', $limit = null) |
|
| 61 | { |
|
| 62 | $this->parse(); |
|
| 63 | ||
| 64 | if (empty($delim)) { |
|
| 65 | return $this->chars; |
|
| 66 | } |
|
| 67 | if (is_int($delim)) { |
|
| 68 | return \str_split($this->raw, $delim); |
|
| 69 | } |
|
| 70 | if ($limit === null) { |
|
| 71 | return \explode($delim, $this->raw); |
|
| 72 | } |
|
| 73 | return \explode($delim, $this->raw, $limit); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @return string |
|
| @@ 9-21 (lines=13) @@ | ||
| 6 | { |
|
| 7 | protected $token = false; |
|
| 8 | ||
| 9 | public function toArray($delim = '', $limit = null) |
|
| 10 | { |
|
| 11 | if (empty($delim)) { |
|
| 12 | return \str_split($this->raw); |
|
| 13 | } |
|
| 14 | if (is_int($delim)) { |
|
| 15 | return \str_split($this->raw, $delim); |
|
| 16 | } |
|
| 17 | if ($limit === null) { |
|
| 18 | return \explode($delim, $this->raw); |
|
| 19 | } |
|
| 20 | return \explode($delim, $this->raw, $limit); |
|
| 21 | } |
|
| 22 | ||
| 23 | // INFORMATIONAL METHODS |
|
| 24 | ||