WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::value() protected WP 1.0

See what state to move to while within non-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->value();

Code of SimplePie_HTTP_Parser::value() WP 5.8.2

protected function value()
{
	if ($this->is_linear_whitespace())
	{
		$this->linear_whitespace();
	}
	else
	{
		switch ($this->data[$this->position])
		{
			case '"':
				// Workaround for ETags: we have to include the quotes as
				// part of the tag.
				if (strtolower($this->name) === 'etag')
				{
					$this->value .= '"';
					$this->position++;
					$this->state = 'value_char';
					break;
				}
				$this->position++;
				$this->state = 'quote';
				break;

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

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