Commit 9cdebc90 authored by Max Kellermann's avatar Max Kellermann

lib/icu/Compare: use StringIsEqualIgnoreCase()

parent 0a267056
......@@ -22,8 +22,6 @@
#include "util/StringAPI.hxx"
#include "config.h"
#include <string.h>
#ifdef HAVE_ICU_CASE_FOLD
IcuCompare::IcuCompare(const char *_needle) noexcept
......@@ -42,7 +40,7 @@ IcuCompare::operator==(const char *haystack) const noexcept
#ifdef HAVE_ICU_CASE_FOLD
return StringIsEqual(IcuCaseFold(haystack).c_str(), needle.c_str());
#else
return strcasecmp(haystack, needle.c_str());
return StringIsEqualIgnoreCase(haystack, needle.c_str());
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment