From c158abe87ca38da0f1ed42c7cbeeafa59ccf0750 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Nov 2022 21:12:34 +0100 Subject: [PATCH] lib/icu/Compare: use StringIsEqualIgnoreCase() --- src/lib/icu/Compare.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/icu/Compare.cxx b/src/lib/icu/Compare.cxx index d8b147c45..0e31d0487 100644 --- a/src/lib/icu/Compare.cxx +++ b/src/lib/icu/Compare.cxx @@ -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;