+2007-01-23 Bruno Haible <bruno@clisp.org>
+
+ * lib/striconveh.c: Include c-strcaseeq.h.
+ (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
+ * modules/striconveh (Depends-on): Add c-strcaseeq.
+
2007-01-23 Bruno Haible <bruno@clisp.org>
* MODULES.html.sh (String handling): Add streq, c-strcaseeq.
#include "strdup.h"
#include "c-strcase.h"
+#include "c-strcaseeq.h"
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
if (cd == (iconv_t)(-1))
return -1;
- if (c_strcasecmp (from_codeset, "UTF-8") == 0)
+ if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd1 = (iconv_t)(-1);
else
{
}
}
- if (c_strcasecmp (to_codeset, "UTF-8") == 0)
+ if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd2 = (iconv_t)(-1);
else
{
if (cd == (iconv_t)(-1))
return NULL;
- if (c_strcasecmp (from_codeset, "UTF-8") == 0)
+ if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd1 = (iconv_t)(-1);
else
{
}
}
- if (c_strcasecmp (to_codeset, "UTF-8") == 0)
+ if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd2 = (iconv_t)(-1);
else
{