diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 08:42:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 08:42:55 +0200 |
commit | 222dc8a239f7578cecdcb21523052140aa1192cf (patch) | |
tree | 3d5577e2d9092277e08de28f20766c01f87cc0ea /src/pcm | |
parent | 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (diff) | |
download | mpd-222dc8a239f7578cecdcb21523052140aa1192cf.tar.gz mpd-222dc8a239f7578cecdcb21523052140aa1192cf.tar.xz mpd-222dc8a239f7578cecdcb21523052140aa1192cf.zip |
Util/ASCII: add StringEqualsCaseASCII() overload with length
Replaces GLib's g_ascii_strncasecmp().
Diffstat (limited to '')
-rw-r--r-- | src/pcm/PcmResampleLibsamplerate.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pcm/PcmResampleLibsamplerate.cxx b/src/pcm/PcmResampleLibsamplerate.cxx index 2ffe4b8c4..1986e8821 100644 --- a/src/pcm/PcmResampleLibsamplerate.cxx +++ b/src/pcm/PcmResampleLibsamplerate.cxx @@ -19,12 +19,11 @@ #include "config.h" #include "PcmResampleInternal.hxx" +#include "util/ASCII.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" #include "Log.hxx" -#include <glib.h> - #include <assert.h> #include <stdlib.h> #include <string.h> @@ -54,7 +53,7 @@ lsr_parse_converter(const char *s) if (name == nullptr) break; - if (g_ascii_strncasecmp(s, name, length) == 0) { + if (StringEqualsCaseASCII(s, name, length)) { lsr_converter = i; return true; } |