Lines Matching defs:data
62 public $data = '';
81 * Create an instance of the class with the input data
84 * @param string $data Input data
86 public function __construct($data)
88 $this->data = $data;
92 * Parse the input data
95 * @return string Output data
99 while (($this->position = strpos($this->data, '&', $this->position)) !== false) {
104 return $this->data;
111 * @return mixed The next byte, or false, if there is no more data
115 if (isset($this->data[$this->position])) {
116 $this->consumed .= $this->data[$this->position];
117 return $this->data[$this->position++];
132 if ($len = strspn($this->data, $chars, $this->position)) {
133 $data = substr($this->data, $this->position, $len);
134 $this->consumed .= $data;
136 return $data;
206 $this->data = substr_replace($this->data, $replacement, $this->position - $consumed_length, $consumed_length);
589 $this->data = substr_replace($this->data, $entities[$match], $this->position - strlen($consumed) - 1, strlen($match) + 1);