| @@ 48-60 (lines=13) @@ | ||
| 45 | return $this->raw; |
|
| 46 | } |
|
| 47 | ||
| 48 | public function toArray($delim = '', $limit = null) |
|
| 49 | { |
|
| 50 | if (empty($delim)) { |
|
| 51 | return \str_split($this->raw); |
|
| 52 | } |
|
| 53 | if (is_int($delim)) { |
|
| 54 | return \str_split($this->raw, $delim); |
|
| 55 | } |
|
| 56 | if ($limit === null) { |
|
| 57 | return \explode($delim, $this->raw); |
|
| 58 | } |
|
| 59 | return \explode($delim, $this->raw, $limit); |
|
| 60 | } |
|
| 61 | ||
| 62 | // INFORMATIONAL METHODS |
|
| 63 | ||
| @@ 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 |
|