WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::name() protected WP 1.0

Parse a header name

{} 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->name();

Code of SimplePie_HTTP_Parser::name() WP 5.8.2

protected function name()
{
	$len = strcspn($this->data, "\x0A:", $this->position);
	if (isset($this->data[$this->position + $len]))
	{
		if ($this->data[$this->position + $len] === "\x0A")
		{
			$this->position += $len;
			$this->state = 'new_line';
		}
		else
		{
			$this->name = substr($this->data, $this->position, $len);
			$this->position += $len + 1;
			$this->state = 'value';
		}
	}
	else
	{
		$this->state = false;
	}
}