Lines Matching refs:pos

980     protected $pos;  variable in simple_html_dom
1153 $this->pos = 0;
1265 $begin_tag_pos = $this->pos;
1266 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1271 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1278 if (($pos = strpos($tag, ' '))!==false)
1279 $tag = substr($tag, 0, $pos);
1328 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1351 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1356 if ($pos=strpos($tag, '<')!==false) {
1360 $this->char = $this->doc[--$this->pos]; // prev
1373 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1404 if ($guard===$this->pos)
1406 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1409 $guard = $this->pos;
1412 if ($this->pos>=$this->size-1 && $this->char!=='>') {
1422 if ($this->doc[$this->pos-1]=='<') {
1427 … $node->_[HDOM_INFO_TEXT] = substr($this->doc, $begin_tag_pos, $this->pos-$begin_tag_pos-1);
1428 $this->pos -= 2;
1429 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1439 … $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1446 if ($this->char!='>') $this->char = $this->doc[--$this->pos]; // prev
1469 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1496 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1498 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1502 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1504 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1537 $this->char = (++$this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1543 $this->pos += strspn($this->doc, $chars, $this->pos);
1544 $this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1549 $pos = $this->pos;
1550 $len = strspn($this->doc, $chars, $pos);
1551 $this->pos += $len;
1552 $this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1554 return substr($this->doc, $pos, $len);
1559 $pos = $this->pos;
1560 $len = strcspn($this->doc, $chars, $pos);
1561 $this->pos += $len;
1562 $this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1563 return substr($this->doc, $pos, $len);
1570 if (($pos = strpos($this->doc, $char, $this->pos))===false) {
1571 $ret = substr($this->doc, $this->pos, $this->size-$this->pos);
1573 $this->pos = $this->size;
1577 if ($pos===$this->pos) return '';
1578 $pos_old = $this->pos;
1579 $this->char = $this->doc[$pos];
1580 $this->pos = $pos;
1581 return substr($this->doc, $pos_old, $pos-$pos_old);
1588 $start = $this->pos;
1591 if (($pos = strpos($this->doc, $char, $start))===false)
1593 $ret = substr($this->doc, $this->pos, $this->size-$this->pos);
1595 $this->pos = $this->size;
1599 if ($pos===$this->pos) return '';
1601 if ($this->doc[$pos-1]==='\\') {
1602 $start = $pos+1;
1606 $pos_old = $this->pos;
1607 $this->char = $this->doc[$pos];
1608 $this->pos = $pos;
1609 return substr($this->doc, $pos_old, $pos-$pos_old);
1645 while (($pos=strpos($text, '___noise___'))!==false)
1648 if (strlen($text) > $pos+15)
1650 … $key = '___noise___'.$text[$pos+11].$text[$pos+12].$text[$pos+13].$text[$pos+14].$text[$pos+15];
1655 $text = substr($text, 0, $pos).$this->noise[$key].substr($text, $pos+16);
1660 … $text = substr($text, 0, $pos).'UNDEFINED NOISE FOR KEY: '.$key . substr($text, $pos+16);
1666 $text = substr($text, 0, $pos).'NO NUMERIC NOISE KEY' . substr($text, $pos+11);