[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module c-strcaseeq
From: |
Bruno Haible |
Subject: |
Re: new module c-strcaseeq |
Date: |
Wed, 24 Jan 2007 03:58:17 +0100 (MET) |
User-agent: |
KMail/1.5.4 |
And this provides the first use of this module.
2007-01-23 Bruno Haible <address@hidden>
* lib/striconveh.c: Include c-strcaseeq.h.
(mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
* modules/striconveh (Depends-on): Add c-strcaseeq.
*** lib/striconveh.c 23 Jan 2007 01:09:41 -0000 1.6
--- lib/striconveh.c 24 Jan 2007 02:55:24 -0000
***************
*** 35,40 ****
--- 35,41 ----
#include "strdup.h"
#include "c-strcase.h"
+ #include "c-strcaseeq.h"
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
***************
*** 929,935 ****
if (cd == (iconv_t)(-1))
return -1;
! if (c_strcasecmp (from_codeset, "UTF-8") == 0)
cd1 = (iconv_t)(-1);
else
{
--- 930,936 ----
if (cd == (iconv_t)(-1))
return -1;
! if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd1 = (iconv_t)(-1);
else
{
***************
*** 943,949 ****
}
}
! if (c_strcasecmp (to_codeset, "UTF-8") == 0)
cd2 = (iconv_t)(-1);
else
{
--- 944,950 ----
}
}
! if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd2 = (iconv_t)(-1);
else
{
***************
*** 1062,1068 ****
if (cd == (iconv_t)(-1))
return NULL;
! if (c_strcasecmp (from_codeset, "UTF-8") == 0)
cd1 = (iconv_t)(-1);
else
{
--- 1063,1069 ----
if (cd == (iconv_t)(-1))
return NULL;
! if (STRCASEEQ (from_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd1 = (iconv_t)(-1);
else
{
***************
*** 1076,1082 ****
}
}
! if (c_strcasecmp (to_codeset, "UTF-8") == 0)
cd2 = (iconv_t)(-1);
else
{
--- 1077,1083 ----
}
}
! if (STRCASEEQ (to_codeset, "UTF-8", 'U','T','F','-','8',0,0,0,0))
cd2 = (iconv_t)(-1);
else
{
*** modules/striconveh 16 Jan 2007 03:47:23 -0000 1.1
--- modules/striconveh 24 Jan 2007 02:57:18 -0000
***************
*** 14,19 ****
--- 14,20 ----
unistr/u8-mbtouc
strdup
c-strcase
+ c-strcaseeq
configure.ac:
if test $gl_cond_libtool = false; then