WordPress at Your Fingertips
function is not described

SimplePie_HTTP_Parser::linear_whitespace() protected WP 1.0

Parse LWS, replacing consecutive LWS characters with a single space

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

Code of SimplePie_HTTP_Parser::linear_whitespace() WP 5.8.2

protected function linear_whitespace()
{
	do
	{
		if (substr($this->data, $this->position, 2) === "\x0D\x0A")
		{
			$this->position += 2;
		}
		elseif ($this->data[$this->position] === "\x0A")
		{
			$this->position++;
		}
		$this->position += strspn($this->data, "\x09\x20", $this->position);
	} while ($this->has_data() && $this->is_linear_whitespace());
	$this->value .= "\x20";
}