Lines Matching refs:idx2
2785 function count_array_diff($ar1, $ar2, $is_reg, $w, $idx1, $idx2, $cnt1, $cnt2, $steps) argument
2789 while ($idx1 < $cnt1 && $idx2 < $cnt2 && comp_line($ar1[$idx1], $ar2[$idx2], $is_reg)) {
2791 $idx2++;
2800 $eq = @count_array_diff($ar1, $ar2, $is_reg, $w, $ofs1, $idx2, $cnt1, $cnt2, $st);
2810 for ($ofs2 = $idx2 + 1; $ofs2 < $cnt2 && $st-- > 0; $ofs2++) {
2831 $idx2 = 0;
2837 while ($idx1 < $cnt1 && $idx2 < $cnt2) {
2839 if (comp_line($ar1[$idx1], $ar2[$idx2], $is_reg)) {
2841 $idx2++;
2845 $c1 = @count_array_diff($ar1, $ar2, $is_reg, $w, $idx1 + 1, $idx2, $cnt1, $cnt2, 10);
2846 $c2 = @count_array_diff($ar1, $ar2, $is_reg, $w, $idx1, $idx2 + 1, $cnt1, $cnt2, 10);
2851 $old2[$idx2] = sprintf("%03d+ ", $idx2 + 1) . $ar2[$idx2++];
2854 $old2[$idx2] = sprintf("%03d+ ", $idx2 + 1) . $ar2[$idx2++];
2891 while ($idx2 < $cnt2) {
2892 $diff[] = sprintf("%03d+ ", $idx2 + 1) . $ar2[$idx2++];