Hash :
f039d18e
Author :
Date :
2023-09-09T17:14:15
mbsstr: support GNULIB_MCEL_PREFER Support mcel API for apps that prefer it. * lib/mbsstr.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, mbsstr) [GNULIB_MCEL_PREFER]: Use mcel API. * modules/mbsstr (Depends-on): Add alignasof.
Description:
mbsstr() function: search for a substring in a string.
Files:
lib/mbsstr.c
lib/str-kmp.h
Depends-on:
alignasof
mbuiter
stdbool
string
mbslen
malloca
strnlen
configure.ac:
gl_STRING_MODULE_INDICATOR([mbsstr])
Makefile.am:
lib_SOURCES += mbsstr.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