@@ 4947-4953 (lines=7) @@ | ||
4944 | } |
|
4945 | } |
|
4946 | ||
4947 | protected function reason() |
|
4948 | { |
|
4949 | $len = strcspn($this->data, "\x0A", $this->position); |
|
4950 | $this->reason = trim(substr($this->data, $this->position, $len), "\x09\x0D\x20"); |
|
4951 | $this->position += $len + 1; |
|
4952 | $this->state = 'new_line'; |
|
4953 | } |
|
4954 | ||
4955 | protected function new_line() |
|
4956 | { |
|
@@ 5063-5069 (lines=7) @@ | ||
5060 | } |
|
5061 | } |
|
5062 | ||
5063 | protected function value_char() |
|
5064 | { |
|
5065 | $len = strcspn($this->data, "\x09\x20\x0A\"", $this->position); |
|
5066 | $this->value .= substr($this->data, $this->position, $len); |
|
5067 | $this->position += $len; |
|
5068 | $this->state = 'value'; |
|
5069 | } |
|
5070 | ||
5071 | protected function quote() |
|
5072 | { |
|
@@ 5100-5106 (lines=7) @@ | ||
5097 | } |
|
5098 | } |
|
5099 | ||
5100 | protected function quote_char() |
|
5101 | { |
|
5102 | $len = strcspn($this->data, "\x09\x20\x0A\"\\", $this->position); |
|
5103 | $this->value .= substr($this->data, $this->position, $len); |
|
5104 | $this->position += $len; |
|
5105 | $this->state = 'value'; |
|
5106 | } |
|
5107 | ||
5108 | protected function quote_escaped() |
|
5109 | { |