Hash :
00c62edb
Author :
Date :
2023-09-25T23:01:55
mbscasestr: support GNULIB_MCEL_PREFER Support mcel API for apps that prefer it. This mirrors the recent changes to mbsstr. * lib/mbscasestr.c [GNULIB_MCEL_PREFER]: Include mcel.h not mbuiter.h. (mbchar_t, mb_equal) [GNULIB_MCEL_PREFER]: New type and function, to make it easier to use common code. (knuth_morris_pratt_multibyte): Don't assume mbchar_t's alignment is at least that of size_t. (knuth_morris_pratt_multibyte, mbscasestr) [GNULIB_MCEL_PREFER]: Use mcel API. * modules/mbscasestr (Depends-on): Add alignasof.
Description:
mbscasestr() function: case-insensitive search for a substring in a string.
Files:
lib/mbscasestr.c
lib/str-kmp.h
Depends-on:
alignasof
mbuiter
stdbool
string
mbslen
malloca
c32tolower
strnlen
configure.ac:
gl_STRING_MODULE_INDICATOR([mbscasestr])
Makefile.am:
lib_SOURCES += mbscasestr.c
Include:
<string.h>
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
License:
LGPL
Maintainer:
all