Util/ASCII: add StringEqualsCaseASCII() overload with length
Replaces GLib's g_ascii_strncasecmp().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user