aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringUtil.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 23:09:51 +0200
commit0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (patch)
tree181aa272821ace382565b3c3465949101b98e253 /src/util/StringUtil.cxx
parent2bbff77e489ae72a332b18b122844bd761d75764 (diff)
downloadmpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.gz
mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.tar.xz
mpd-0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b.zip
Util/ASCII: add function StringEqualsCaseASCII()
Replaces GLib's g_ascii_strcasecmp().
Diffstat (limited to '')
-rw-r--r--src/util/StringUtil.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/StringUtil.cxx b/src/util/StringUtil.cxx
index 048f009f5..7e295bf90 100644
--- a/src/util/StringUtil.cxx
+++ b/src/util/StringUtil.cxx
@@ -19,8 +19,7 @@
#include "StringUtil.hxx"
#include "CharUtil.hxx"
-
-#include <glib.h>
+#include "ASCII.hxx"
#include <assert.h>
@@ -40,7 +39,7 @@ string_array_contains(const char *const* haystack, const char *needle)
assert(needle != nullptr);
for (; *haystack != nullptr; ++haystack)
- if (g_ascii_strcasecmp(*haystack, needle) == 0)
+ if (StringEqualsCaseASCII(*haystack, needle))
return true;
return false;