24int wildcmp(
const std::string &wild,
const std::string &
string) {
25 return wildcmp(wild.c_str(),
string.c_str());
28int wildcmp(
const char *wild,
const char *
string) {
30 const char *cp =
nullptr, *mp =
nullptr;
32 while ((*
string) && (*wild !=
'*')) {
33 if ((*wild != *
string) && (*wild !=
'?')) {
47 }
else if ((*wild == *
string) || (*wild ==
'?')) {
56 while (*wild ==
'*') {
base class for all analysis tools