| @@ -45,14 +45,12 @@ | ||
| 45 | 45 | * Read characters until we reach the given character $char. |
| 46 | 46 | * By default, discard that final matching character and return the rest. |
| 47 | 47 | * |
| 48 | 48 | * @param string $char |
| 49 | - * | |
| 50 | 49 | * @return string |
| 51 | 50 | */ |
| 52 | 51 | public function read_until( $char ) { |
| 53 | 52 | $value = ''; |
| 54 | - | |
| 55 | 53 | while ( $this->pos <= $this->max && ( $one = $this->string[ $this->pos++ ] ) !== $char ) { |
| 56 | 54 | $value .= $one; |
| 57 | 55 | } |
| 58 | 56 | return $value; |
| @@ -63,9 +61,8 @@ | ||
| 63 | 61 | * whichever comes first. |
| 64 | 62 | * By default, remove enclosing double-quotes from the result. |
| 65 | 63 | * |
| 66 | 64 | * @param int $count |
| 67 | - * | |
| 68 | 65 | * @return string |
| 69 | 66 | */ |
| 70 | 67 | public function read( $count ) { |
| 71 | 68 | $value = ''; |