From 9cdebc90a00a63bbfd2525abc3cec002c4efda81 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Jul 2019 09:59:53 +0200 Subject: [PATCH] lib/icu/Compare: use StringIsEqualIgnoreCase() --- src/lib/icu/Compare.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/icu/Compare.cxx b/src/lib/icu/Compare.cxx index 2c4d350a0..a84fdba93 100644 --- a/src/lib/icu/Compare.cxx +++ b/src/lib/icu/Compare.cxx @@ -22,8 +22,6 @@ #include "util/StringAPI.hxx" #include "config.h" -#include - #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 }