Lines Matching refs:idx2
2222 function count_array_diff($ar1, $ar2, $is_reg, $w, $idx1, $idx2, $cnt1, $cnt2, $steps) argument
2226 while ($idx1 < $cnt1 && $idx2 < $cnt2 && comp_line($ar1[$idx1], $ar2[$idx2], $is_reg)) {
2228 $idx2++;
2237 $eq = @count_array_diff($ar1, $ar2, $is_reg, $w, $ofs1, $idx2, $cnt1, $cnt2, $st);
2247 for ($ofs2 = $idx2 + 1; $ofs2 < $cnt2 && $st-- > 0; $ofs2++) {
2267 $idx2 = 0; $ofs2 = 0; $cnt2 = @count($ar2);
2272 while ($idx1 < $cnt1 && $idx2 < $cnt2) {
2274 if (comp_line($ar1[$idx1], $ar2[$idx2], $is_reg)) {
2276 $idx2++;
2280 $c1 = @count_array_diff($ar1, $ar2, $is_reg, $w, $idx1+1, $idx2, $cnt1, $cnt2, 10);
2281 $c2 = @count_array_diff($ar1, $ar2, $is_reg, $w, $idx1, $idx2+1, $cnt1, $cnt2, 10);
2287 $old2[$idx2] = sprintf("%03d+ ", $idx2+1) . $ar2[$idx2++];
2291 $old2[$idx2] = sprintf("%03d+ ", $idx2+1) . $ar2[$idx2++];
2324 while ($idx2 < $cnt2) {
2325 $diff[] = sprintf("%03d+ ", $idx2 + 1) . $ar2[$idx2++];