Fix PSP compiled

This commit is contained in:
2025-11-09 20:42:03 -06:00
parent f23e26d9da
commit d6c497731f
10 changed files with 48 additions and 34 deletions

View File

@@ -155,4 +155,17 @@ bool_t stringEndsWith(const char_t *str, const char_t *suffix) {
size_t suffixLen = strlen(suffix);
if(suffixLen > strLen) return false;
return strcmp(str + strLen - suffixLen, suffix) == 0;
}
bool_t stringEndsWithCaseInsensitive(
const char_t *str,
const char_t *suffix
) {
assertNotNull(str, "str must not be NULL");
assertNotNull(suffix, "suffix must not be NULL");
size_t strLen = strlen(str);
size_t suffixLen = strlen(suffix);
if(suffixLen > strLen) return false;
return strcasecmp(str + strLen - suffixLen, suffix) == 0;
}