Lines Matching defs:pos

1401 	protected $pos;
1637 $this->pos = 0;
1819 $begin_tag_pos = $this->pos;
1820 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1824 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1831 if (($pos = strpos($tag, ' ')) !== false) {
1832 $tag = substr($tag, 0, $pos);
1907 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1936 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1942 if ($pos = strpos($tag, '<') !== false) {
1946 $this->char = $this->doc[--$this->pos]; // prev
1963 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
1996 if ($guard === $this->pos) { // Escape infinite loop
1997 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2001 $guard = $this->pos;
2005 if ($this->pos >= $this->size - 1 && $this->char !== '>') {
2016 if ($this->doc[$this->pos - 1] == '<') {
2024 $this->pos - $begin_tag_pos - 1
2026 $this->pos -= 2;
2027 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2041 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2047 if ($this->char != '>') { $this->char = $this->doc[--$this->pos]; } // prev
2077 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2099 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2101 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2105 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2107 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2152 $this->char = (++$this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2158 $this->pos += strspn($this->doc, $chars, $this->pos);
2159 $this->char = ($this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2164 $pos = $this->pos;
2165 $len = strspn($this->doc, $chars, $pos);
2166 $this->pos += $len;
2167 $this->char = ($this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2169 return substr($this->doc, $pos, $len);
2174 $pos = $this->pos;
2175 $len = strcspn($this->doc, $chars, $pos);
2176 $this->pos += $len;
2177 $this->char = ($this->pos < $this->size) ? $this->doc[$this->pos] : null; // next
2178 return substr($this->doc, $pos, $len);
2185 if (($pos = strpos($this->doc, $char, $this->pos)) === false) {
2186 $ret = substr($this->doc, $this->pos, $this->size - $this->pos);
2188 $this->pos = $this->size;
2192 if ($pos === $this->pos) { return ''; }
2194 $pos_old = $this->pos;
2195 $this->char = $this->doc[$pos];
2196 $this->pos = $pos;
2197 return substr($this->doc, $pos_old, $pos - $pos_old);
2237 while (($pos = strpos($text, '___noise___')) !== false) {
2239 // pos+11 etc... token which indicates a problem outside of us...
2244 if (strlen($text) > $pos + 15) {
2246 . $text[$pos + 11]
2247 . $text[$pos + 12]
2248 . $text[$pos + 13]
2249 . $text[$pos + 14]
2250 . $text[$pos + 15];
2257 $text = substr($text, 0, $pos)
2259 . substr($text, $pos + 16);
2262 $text = substr($text, 0, $pos)
2265 . substr($text, $pos + 16);
2270 $text = substr($text, 0, $pos)
2272 . substr($text, $pos + 11);