SimplePie_HTTP_Parser::linear_whitespace PHP Method

linear_whitespace() public method

Parse LWS, replacing consecutive LWS characters with a single space
public linear_whitespace ( )
    function linear_whitespace()
    {
        do {
            if (substr($this->data, $this->position, 2) === "\r\n") {
                $this->position += 2;
            } elseif ($this->data[$this->position] === "\n") {
                $this->position++;
            }
            $this->position += strspn($this->data, "\t ", $this->position);
        } while ($this->has_data() && $this->is_linear_whitespace());
        $this->value .= " ";
    }