bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strcasestr


From: Eric Blake
Subject: Re: strcasestr
Date: Tue, 05 Jan 2010 20:25:11 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Dilyan Palauzov on 1/5/2010 11:13 AM:
> My question is, if gnulib has replacement for strcasecmp () that is not
> documented, or if gnulib has no replacement at all?

The documentation was out-of-date.  (And your subject line didn't help
matters - the question is about strcasecmp, not strcasestr).  I'm pushing
this.

But meanwhile, you should consider whether you ever expect to handle
multi-byte characters, in which case strcasecmp is worthless.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
From f8b8f4f5e1c1fd8687f4eeda7055aa89e30f65a5 Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Tue, 5 Jan 2010 20:23:07 -0700
Subject: [PATCH] strcase: document what it provides

* doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
gnulib module.
* doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
Reported by Dilyan Palauzov <address@hidden>.

Signed-off-by: Eric Blake <address@hidden>
---
 ChangeLog                            |    8 ++++++++
 doc/posix-functions/strcasecmp.texi  |    4 +++-
 doc/posix-functions/strncasecmp.texi |    4 +++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2857d3d..833c872 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-05  Eric Blake  <address@hidden>
+
+       strcase: document what it provides
+       * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
+       gnulib module.
+       * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
+       Reported by Dilyan Palauzov <address@hidden>.
+
 2010-01-05  Jim Meyering  <address@hidden>

        maint: remove useless inclusions of "xalloc.h"
diff --git a/doc/posix-functions/strcasecmp.texi 
b/doc/posix-functions/strcasecmp.texi
index a4b87d4..f5d5edd 100644
--- a/doc/posix-functions/strcasecmp.texi
+++ b/doc/posix-functions/strcasecmp.texi
@@ -4,10 +4,12 @@ strcasecmp

 POSIX specification: 
@url{http://www.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html}

-Gnulib module: ---
+Gnulib module: strcase

 Portability problems fixed by Gnulib:
 @itemize
address@hidden
+This function is missing on some platforms.
 @end itemize

 Portability problems not fixed by Gnulib:
diff --git a/doc/posix-functions/strncasecmp.texi 
b/doc/posix-functions/strncasecmp.texi
index afb0689..5d894b6 100644
--- a/doc/posix-functions/strncasecmp.texi
+++ b/doc/posix-functions/strncasecmp.texi
@@ -4,10 +4,12 @@ strncasecmp

 POSIX specification: 
@url{http://www.opengroup.org/onlinepubs/9699919799/functions/strncasecmp.html}

-Gnulib module: ---
+Gnulib module: strcase

 Portability problems fixed by Gnulib:
 @itemize
address@hidden
+This function is missing on some platforms.
 @end itemize

 Portability problems not fixed by Gnulib:
-- 
1.6.4.2

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]