Lines Matching defs:add
159 private function add(string $string): void {
203 * prepare buffer to add a condition to the xpath expression
211 $this->add('*[');
214 $this->add($condition);
217 $this->add('[');
220 $this->add(' and ');
224 $this->add($condition);
233 $this->add(']');
285 * If here is already data in the buffer, add a separator before starting the next.
294 $this->add('|');
300 $this->add('//');
302 $this->add('self::');
304 $this->add('descendant-or-self::');
306 $this->add('.//');
311 $this->add('//');
339 $this->add($element);
355 $this->add($elementName);
361 $this->add($type->namespacePrefix.':'.$elementName);
368 $this->add('*');
376 $this->add('*');
470 $this->add('/');
478 $this->add('//');
480 $this->add('.//');
488 $this->add('/');
490 $this->add('following-sibling::');
497 $this->add('/');
499 $this->add('following-sibling::*[1]/self::');
541 $this->add(']');
548 $this->add(']');
585 $this->add(']');
627 $this->add(')');
635 $add = $position->add;
641 $condition = $expressionPosition.' = '.$add;
643 if ($add > $repeat) {
644 $balance = $add - (floor($add / $repeat) * $repeat);
645 $start = $add;
646 } elseif ($add < 0) {
647 if (abs($add) > $repeat) {
648 $balance = $add - (floor($add / $repeat) * $repeat);
649 $start = $add;
651 $balance = $repeat + $add;
655 $balance = $add;
665 $this->add($condition);