WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::quote() protected WP 1.0

See what state to move to while within quoted header values

{} It's a method of the class: SimplePie_HTTP_Parser{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->quote();

Code of SimplePie_HTTP_Parser::quote() WP 5.8.2

protected function quote()
{
	if ($this->is_linear_whitespace())
	{
		$this->linear_whitespace();
	}
	else
	{
		switch ($this->data[$this->position])
		{
			case '"':
				$this->position++;
				$this->state = 'value';
				break;

			case "\x0A":
				$this->position++;
				$this->state = 'new_line';
				break;

			case '\\':
				$this->position++;
				$this->state = 'quote_escaped';
				break;

			default:
				$this->state = 'quote_char';
				break;
		}
	}
}