Lines Matching refs:cursor

57         $cursor = 0; // our location in the text
101 $rcursor = $cursor - (int)$inside_tag;
112 $cursor > 0 && // cursor is further than zero
114 $current_line = 1 + $this->substrCount($html, $nl, 0, $cursor);
118 $position_next_lt = strpos($html, '<', $cursor);
119 $position_next_gt = strpos($html, '>', $cursor);
123 if ($position_next_lt === $cursor) {
125 $cursor++;
135 $cursor,
136 $position_next_lt - $cursor
142 … $current_line += $this->substrCount($html, $nl, $cursor, $position_next_lt - $cursor);
145 $cursor = $position_next_lt + 1;
151 if ($cursor === strlen($html)) {
160 $cursor
172 $strlen_segment = $position_next_gt - $cursor;
177 $cursor++;
181 $segment = substr($html, $cursor, $strlen_segment);
192 $position_comment_end = strpos($html, '-->', $cursor);
205 $strlen_segment = $position_comment_end - $cursor;
206 $segment = substr($html, $cursor, $strlen_segment);
217 $current_line += $this->substrCount($html, $nl, $cursor, $strlen_segment);
220 $cursor = $end ? $position_comment_end : $position_comment_end + 3;
232 … $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
236 $cursor = $position_next_gt + 1;
251 … $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
279 … $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
283 $cursor = $position_next_gt + 1;
313 … $current_line += $this->substrCount($html, $nl, $cursor, $position_next_gt - $cursor);
316 $cursor = $position_next_gt + 1;
328 substr($html, $cursor), $config
437 $cursor = 0; // current position in string (moves forward)
445 while ($cursor < $size) {
446 if ($old_cursor >= $cursor) {
449 $old_cursor = $cursor;
451 $cursor += ($value = strspn($string, $this->_whitespace, $cursor));
454 $key_begin = $cursor; //we're currently at the start of the key
457 $cursor += strcspn($string, $this->_whitespace . '=', $cursor);
459 $key_end = $cursor; // now at the end of the key
467 … $cursor += 1 + strcspn($string, $this->_whitespace, $cursor + 1); // prevent infinite loop
472 $cursor += strspn($string, $this->_whitespace, $cursor);
474 if ($cursor >= $size) {
481 $first_char = @$string[$cursor];
486 $cursor++;
487 $cursor += strspn($string, $this->_whitespace, $cursor);
489 if ($cursor === false) {
496 $char = @$string[$cursor];
500 $cursor++;
501 $value_begin = $cursor;
502 $cursor = strpos($string, $char, $cursor);
503 $value_end = $cursor;
506 $value_begin = $cursor;
507 $cursor += strcspn($string, $this->_whitespace, $cursor);
508 $value_end = $cursor;
512 if ($cursor === false) {
513 $cursor = $size;
514 $value_end = $cursor;
522 $cursor++;