Lines Matching refs:pos
134 $pos = 0;
136 while ($pos < $max) {
137 $start_open = strpos ($docContent, '<text:p', $pos);
175 $pos = $start_open;
180 $pos = $start_close;
567 * @param string $pos Start position for searching.
570 public static function getNextTag (&$content, $pos) { argument
571 $start = strpos ($content, '<', $pos);
575 $end = strpos ($content, '>', $pos);
594 for ($pos = 0 ; $pos < $max ; $pos++) {
595 switch ($value [$pos]) {
597 if ($max - $pos >= 4 &&
598 $value [$pos+1] == '#' &&
599 $value [$pos+2] == '3' &&
600 $value [$pos+3] == '8' &&
601 $value [$pos+4] == ';') {
603 $value [$pos+1] = 'a';
604 $value [$pos+2] = 'm';
605 $value [$pos+3] = 'p';
606 $pos += 4;
607 } else if ($max - $pos < 4 ||
608 $value [$pos+1] != 'a' ||
609 $value [$pos+2] != 'm' ||
610 $value [$pos+3] != 'p' ||
611 $value [$pos+4] != ';' ) {
613 $new = substr($value, 0, $pos+1);
615 $new .= substr($value, $pos+1);
618 $pos += 4;
828 $pos = 0;
829 while ($pos < $max) {
830 $found = self::getNextTag($HTMLCode, $pos);
833 $entry ['content'] = substr($HTMLCode, $pos, $found [0]-$pos);
861 $pos = $found [1]+1;
864 $entry ['content'] = substr($HTMLCode, $pos);