SimplePie_HTTP_Parser::linear_whitespace

Advertisement

Summery Summery

Parse LWS, replacing consecutive LWS characters with a single space

Syntax Syntax

SimplePie_HTTP_Parser::linear_whitespace()

Source Source

File: wp-includes/SimplePie/HTTP/Parser.php

		{
			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";
	}

	/**
	 * See what state to move to while within non-quoted header values

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.