Lines Matching refs:i

54         for ($i = 0; $i < count($this->nodes); $i++) {
55 if ($this->nodes[$i]->text == '(' || $this->nodes[$i]->text == '{') {
56 array_push($parenthesiss, $i);
57 } elseif ($this->nodes[$i]->text == ')' || $this->nodes[$i]->text == '}') {
60 $sub = array_slice($this->nodes, $pos + 1, $i - $pos - 1);
61 if ($this->nodes[$i]->text == ')') {
72 $ret[] = $this->nodes[$i];
119 for ($i = 0; $i < count($nodes); $i++) {
120 if (!$change && $i < count($nodes) - 2 && $nodes[$i + 1]->text == $operation) {
121 … $ret[] = new MathExpression(array($nodes[$i], $nodes[$i + 1], $nodes[$i + 2]), $this->helper);
122 $i += 2;
125 $ret[] = $nodes[$i];
146 for ($i = 0; $i < count($nodes); $i++) {
147 if ($i < count($nodes) - $argumentsCount && $nodes[$i]->text == $function) {
149 for ($j = $i; $j <= $i + $argumentsCount; $j++) {
153 $i += $argumentsCount;
155 $ret[] = $nodes[$i];
281 for ($i = 0; $i < count($this->nodes); $i++) {
282 if ($this->nodes[$i]->text != '(' && $this->nodes[$i]->text != ')') {
283 $this->nodes[$i]->draw($size);
284 $img[$i] = $this->nodes[$i]->image;
285 $base[$i] = $this->nodes[$i]->verticalBased;
286 $top = max($base[$i], $top);
287 $bottom = max(imagesy($img[$i]) - $base[$i], $bottom);
293 for ($i = 0; $i < count($this->nodes); $i++) {
294 if (!isset($img[$i])) {
295 if ($this->nodes[$i]->text == "(") {
296 $img[$i] = $paro;
298 $img[$i] = $parf;
300 $top = max(imagesy($img[$i]) / 2, $top);
301 $base[$i] = imagesy($img[$i]) / 2;
302 $bottom = max(imagesy($img[$i]) - $base[$i], $bottom);
303 $height = max(imagesy($img[$i]), $height);
305 $width += imagesx($img[$i]);
312 for ($i = 0; $i < count($img); $i++) {
313 if (isset($img[$i])) {
314 … imagecopy($result, $img[$i], $pos, $top - $base[$i], 0, 0, imagesx($img[$i]), imagesy($img[$i]));
315 $pos += imagesx($img[$i]);
599 $i = 0;
602 if ($i < count($this->nodes[3]->nodes)) {
603 $this->nodes[3]->nodes[$i]->draw($size * 0.9);
604 $img[$i] = $this->nodes[3]->nodes[$i]->image;
605 $base[$i] = $this->nodes[3]->nodes[$i]->verticalBased;
606 $topLine[$line] = max($base[$i], $topLine[$line]);
607 $width[$i] = imagesx($img[$i]);
608 $height[$i] = imagesy($img[$i]);
609 $heightLine[$line] = max($heightLine[$line], $height[$i]);
610 $widthColumn[$col] = max($widthColumn[$col], $width[$i]);
612 $i++;
629 $i = 0;
634 if ($i < count($this->nodes[3]->nodes)) {
637 $img[$i],
638 $l + ceil($widthColumn[$col] - $width[$i]) / 2,
639 $h + $topLine[$line] - $base[$i],
642 $width[$i],
643 $height[$i]
648 $i++;
683 $i = 0;
686 if ($i < count($this->nodes[3]->nodes)) {
687 $this->nodes[3]->nodes[$i]->draw($size * 0.9);
688 $img[$i] = $this->nodes[3]->nodes[$i]->image;
689 $base[$i] = $this->nodes[3]->nodes[$i]->verticalBased;
690 $topLine[$line] = max($base[$i], $topLine[$line]);
691 $width[$i] = imagesx($img[$i]);
692 $height[$i] = imagesy($img[$i]);
693 $heightLine[$line] = max($heightLine[$line], $height[$i]);
694 $widthColumn[$col] = max($widthColumn[$col], $width[$i]);
696 $i++;
712 $i = 0;
723 if ($i < count($this->nodes[3]->nodes)) {
726 $img[$i],
727 $l + ceil($widthColumn[$col] - $width[$i]) / 2,
728 $h + $topLine[$line] - $base[$i],
731 $width[$i],
732 $height[$i]
746 $i++;