lib/icu/Compare: use StringIsEqualIgnoreCase()

This commit is contained in:
Max Kellermann 2022-11-15 21:12:34 +01:00
parent 53530bd1d5
commit c158abe87c

View File

@ -107,7 +107,7 @@ IcuCompare::IsIn(const char *haystack) const noexcept
/* poor man's strcasestr() */
for (const size_t length = strlen(needle.c_str());
*haystack != 0; ++haystack)
if (strncasecmp(haystack, needle.c_str(), length) == 0)
if (StringIsEqualIgnoreCase(haystack, needle.c_str(), length))
return true;
return false;