SimplePie_HTTP_Parser::quote PHP Method

quote() public method

See what state to move to while within quoted header values
public quote ( )
    function quote()
    {
        if ($this->is_linear_whitespace()) {
            $this->linear_whitespace();
        } else {
            switch ($this->data[$this->position]) {
                case '"':
                    $this->position++;
                    $this->state = 'value';
                    break;
                case "\n":
                    $this->position++;
                    $this->state = 'new_line';
                    break;
                case '\\':
                    $this->position++;
                    $this->state = 'quote_escaped';
                    break;
                default:
                    $this->state = 'quote_char';
                    break;
            }
        }
    }