Branch
Hash :
f656293f
Author :
Date :
2025-02-16T13:02:25
c-strcasecmp, c-strncasecmp: New modules. * modules/c-strcasecmp: New file. * modules/c-strncasecmp: New file. * modules/c-strcase: Merely depend on c-strcasecmp, c-strncasecmp. * lib/strings.in.h (strcasecmp, strncasecmp): Update warning message. * tests/test-c-strcasecmp.sh: New file, based on tests/test-c-strcase.sh. * tests/test-c-strncasecmp.sh: New file, based on tests/test-c-strcase.sh. * tests/test-c-strcase.sh: Remove file. * modules/c-strcasecmp-tests: New file. * modules/c-strncasecmp-tests: New file. * modules/c-strcase-tests: Remove file. * doc/c-strcasecmp.texi: New file, based on doc/c-strcase.texi. * doc/c-strncasecmp.texi: New file, based on doc/c-strcase.texi. * doc/c-strcase.texi: Remove file. * doc/c-locale.texi: Include c-strcasecmp.texi and c-strncasecmp.texi separately. * modules/c-strcaseeq (Depends-on): Add c-strcasecmp. Remove c-strcase. * modules/iconv_open (Depends-on): Likewise. * modules/nl_langinfo-tests (Depends-on): Likewise. * modules/propername (Depends-on): Likewise. * modules/propername-lite (Depends-on): Likewise. * modules/striconv (Depends-on): Likewise. * modules/striconveh (Depends-on): Likewise. * modules/striconveha (Depends-on): Likewise. * modules/c-strcasestr (Depends-on): Add c-strncasecmp. Remove c-strcase.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
@node String Functions in C Locale
@subsection Character and String Functions in C Locale
The functions in this section are similar to the generic string functions
from the standard C library, except that
@itemize
@item
They behave as if the locale was set to the "C" locale, even when the
locale is different, and/or
@item
They are specially optimized for the case where all characters are plain
ASCII characters.
@end itemize
The functions are provided by the following modules.
@menu
* c-ctype::
* c-strcaseeq::
* c-strcasecmp::
* c-strncasecmp::
* c-strcasestr::
* c-strstr::
* c-strtod::
* c-strtold::
@end menu
@node c-ctype
@subsubsection c-ctype
@include c-ctype.texi
@node c-strcaseeq
@subsubsection c-strcaseeq
@include c-strcaseeq.texi
@node c-strcasecmp
@subsubsection c-strcasecmp
@include c-strcasecmp.texi
@node c-strncasecmp
@subsubsection c-strncasecmp
@include c-strncasecmp.texi
@node c-strcasestr
@subsubsection c-strcasestr
@include c-strcasestr.texi
@node c-strstr
@subsubsection c-strstr
@include c-strstr.texi
@node c-strtod
@subsubsection c-strtod
@include c-strtod.texi
@node c-strtold
@subsubsection c-strtold
@include c-strtold.texi