Lines Matching refs:count
27 public $count; variable in LesserPHP\\Parser
123 $this->count = 0;
144 if ($this->count != strlen($this->buffer)) {
147 $this->count,
219 $this->count--;
385 if (count($values) == 0) return false;
425 $whiteBefore = isset($this->buffer[$this->count - 1]) &&
426 ctype_space($this->buffer[$this->count - 1]);
449 $whiteAfter = isset($this->buffer[$this->count - 1]) &&
450 ctype_space($this->buffer[$this->count - 1]);
494 if (count($values) == 0) return false;
505 if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] != '(') {
530 if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] == '-') {
636 if (count($parts) == 0) {
694 $this->count -= strlen($tok);
718 $this->count += strlen($tok);
723 if (count($content) == 0) return false;
727 $content[count($content) - 1] = rtrim(end($content));
756 $this->count -= strlen($m[2]);
760 $this->count += strlen($m[2]);
769 $this->count -= strlen($delim);
808 if (isset($this->buffer[$this->count])) {
809 $char = $this->buffer[$this->count];
954 if (count($tags) == 0) return false;
969 if (count($tags) == 0) return false;
978 if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] != '[') {
991 $this->count--;
1076 if (isset($this->buffer[$this->count]) && $this->buffer[$this->count] == '@') {
1203 } elseif ($this->count == strlen($this->buffer) || $this->buffer[$this->count] == '}') {
1226 if (count($guards) == 0) {
1246 if (count($guardGroup) == 0) {
1277 if (!isset($what[1]) && isset($this->buffer[$this->count])) {
1278 if ($this->buffer[$this->count] == $what) {
1280 $this->count++;
1308 if (count($items) == 0) {
1313 if ($flatten && count($items) == 1) {
1334 if ($until) $this->count -= strlen($what); // give back $what
1345 if (preg_match($r, $this->buffer, $out, 0, $this->count)) {
1346 $this->count += strlen($out[0]);
1358 while (preg_match(self::$whitePattern, $this->buffer, $m, 0, $this->count)) {
1359 if (isset($m[1]) && empty($this->seenComments[$this->count])) {
1361 $this->seenComments[$this->count] = true;
1363 $this->count += strlen($m[0]);
1376 if (is_null($from)) $from = $this->count;
1384 if ($where === null) return $this->count;
1385 else $this->count = $where;
1398 * @param int|null $count A line number counter to use instead of the current count
1402 …public function throwError(string $msg = 'parse error', ?int $count = null, ?\Throwable $previous … argument
1404 $count = is_null($count) ? $this->count : $count;
1406 $line = $this->line + substr_count(substr($this->buffer, 0, $count), "\n");
1408 if ($this->peek("(.*?)(\n|$)", $m, $count)) {
1441 $b->count = $this->count;
1487 $count = $min[1];
1492 if (preg_match('/url\(.*?\)/', $text, $m, 0, $count))
1493 $count += strlen($m[0]) - strlen($min[0]);
1497 … if (preg_match('/' . $min[0] . '.*?(?<!\\\\)' . $min[0] . '/', $text, $m, 0, $count))
1498 $count += strlen($m[0]) - 1;
1501 $skip = strpos($text, "\n", $count);
1502 if ($skip === false) $skip = strlen($text) - $count;
1503 else $skip -= $count;
1506 if (preg_match('/\/\*.*?\*\//s', $text, $m, 0, $count)) {
1513 if ($skip == 0) $count += strlen($min[0]);
1515 $out .= substr($text, 0, $count) . str_repeat("\n", $newlines);
1516 $text = substr($text, $count + $skip);