Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
if (*it1 == '*' && (it1 + 1) == pattern.end() && it2 == input.end())
return 0;
if (function(*it1, *it2) || *it1 == '?') {
- it1++;
- it2++;
+ ++it1;
+ ++it2;
continue;
}
if (*it1 == '*') {
if (function(*(it1 + 1), *it2))
- it1++;
+ ++it1;
else
- it2++;
+ ++it2;
continue;
}
return 0;
last_pos_pattern = cur_pos_pattern + 1;
last_pos_input = cur_pos_input + 1;
}
-}
\ No newline at end of file
+}