1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-08 17:22:05 +03:00
Files
gnulib/modules/strcasecmp_l
Bruno Haible 6fafa36c51 strcasecmp_l: New module.
* lib/strings.in.h: Include <locale.h>.
(strcasecmp_l): New declaration.
* lib/strcasecmp_l.c: New file, based on lib/strcasecmp.c.
* m4/strcasecmp_l.m4: New file.
* m4/strings_h.m4 (gl_STRINGS_H): Test for strcasecmp_l.
(gl_STRINGS_H_REQUIRE_DEFAULTS): Initialize GNULIB_STRCASECMP_L.
(gl_STRINGS_H_DEFAULTS): Initialize HAVE_STRCASECMP_L,
REPLACE_STRCASECMP_L.
* modules/strings-h (Makefile.am): Substitute GNULIB_STRCASECMP_L,
HAVE_STRCASECMP_L, REPLACE_STRCASECMP_L.
* modules/strcasecmp_l: New file.
* tests/test-strings-h-c++.cc: Check declaration of strcasecmp_l.
* doc/posix-functions/strcasecmp_l.texi: Mention the new module and the
macOS, Solaris, Cygwin bugs.
2025-02-16 22:32:02 +01:00

40 lines
803 B
Plaintext

Description:
Case-insensitive string comparison for unibyte locales.
Files:
lib/strcasecmp_l.c
m4/strcasecmp_l.m4
m4/strcasecmp.m4
m4/intl-thread-locale.m4
Depends-on:
strings-h
locale-h
extensions
c-strcasecmp [test $HAVE_STRCASECMP_L = 0 || test $REPLACE_STRCASECMP_L = 1]
tolower_l [test $HAVE_STRCASECMP_L = 0 || test $REPLACE_STRCASECMP_L = 1]
configure.ac:
gl_FUNC_STRCASECMP_L
gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP_L],
[test $HAVE_STRCASECMP_L = 0 || test $REPLACE_STRCASECMP_L = 1])
AM_COND_IF([GL_COND_OBJ_STRCASECMP_L], [
gl_PREREQ_STRCASECMP_L
])
gl_MODULE_INDICATOR([strcasecmp_l])
gl_STRINGS_MODULE_INDICATOR([strcasecmp_l])
Makefile.am:
if GL_COND_OBJ_STRCASECMP_L
lib_SOURCES += strcasecmp_l.c
endif
Include:
<strings.h>
License:
LGPLv2+
Maintainer:
all