Lines Matching refs:i
95 for ($i = 0; $i < $end;) {
97 switch (substr($diff[$i], 0, 1)) {
100 $diff1[] = substr($diff[$i], 1);
101 } while (++$i < $end && substr($diff[$i], 0, 1) == ' ');
108 $diff1[] = substr($diff[$i], 1);
109 } while (++$i < $end && substr($diff[$i], 0, 1) == '+');
117 $diff1[] = substr($diff[$i], 1);
118 } while (++$i < $end && substr($diff[$i], 0, 1) == '-');
120 while ($i < $end && substr($diff[$i], 0, 1) == '+') {
121 $diff2[] = substr($diff[$i++], 1);
131 $i++;
149 $i = $max_i = $j = $max_j = 0;
151 while ($i < $end && $j < $end) {
152 while ($i >= $max_i && $j >= $max_j) {
154 for ($i = $j;
155 $i < $end && substr($diff[$i], 0, 3) == '***';
156 $i++);
157 for ($max_i = $i;
170 while ($i < $max_i &&
172 strcmp($diff[$i], $diff[$j]) == 0) {
173 $array[] = substr($diff[$i], 2);
174 $i++;
178 while ($i < $max_i && ($max_j-$j) <= 1) {
179 if ($diff[$i] != '' && substr($diff[$i], 0, 1) != ' ') {
182 $array[] = substr($diff[$i++], 2);
185 while ($j < $max_j && ($max_i-$i) <= 1) {
195 if ($i < $max_i) {
197 switch (substr($diff[$i], 0, 1)) {
201 $diff1[] = substr($diff[$i], 2);
205 } while (++$i < $max_i && substr($diff[$i], 0, 1) == '!');
211 $diff1[] = substr($diff[$i], 2);
212 } while (++$i < $max_i && substr($diff[$i], 0, 1) == '+');
218 $diff1[] = substr($diff[$i], 2);
219 } while (++$i < $max_i && substr($diff[$i], 0, 1) == '-');