Codechange: introduce StrEqualsIgnoreCase/StrCompareIgnoreCase to replace strcasecmp

This commit is contained in:
Rubidium
2023-04-27 11:47:08 +02:00
committed by rubidium42
parent 36a0818bc5
commit 86786a7af6
15 changed files with 255 additions and 38 deletions

View File

@@ -1142,7 +1142,7 @@ static bool MatchesExtension(const char *extension, const char *filename)
if (extension == nullptr) return true;
const char *ext = strrchr(filename, extension[0]);
return ext != nullptr && strcasecmp(ext, extension) == 0;
return ext != nullptr && StrEqualsIgnoreCase(ext, extension);
}
/**