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

40 lines
819 B
Plaintext

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