mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-06-15 15:25:49 +00:00
1e7cbc30fd
* lib/mbuiterf.h: Include mbiter-aux.h. (struct mbuif_state): Add field is_utf8. (mbuiterf_next): Invoke mbiter_is_utf8, mbiter_utf8_maximal_subpart. (mbuif_init): Initialize the field is_utf8. * modules/mbuiterf (Depends-on): Add mbiter-aux. * tests/test-mbslen.c (OR): New macro, copied from tests/test-mbsnlen.c. (main): Add more test cases with incomplete characters. * tests/test-mbschr2.sh: Renamed from tests/test-mbschr.sh. * tests/test-mbschr2.c: Renamed from tests/test-mbschr.c. * tests/test-mbschr1.sh: New file, based on tests/test-mbmemcasecmp-3.sh. * tests/test-mbschr1.c: New file. * modules/mbschr-tests (Files): Update accordingly. Add locale-en.m4, locale-fr.m4. (configure.ac): Invoke gt_LOCALE_EN_UTF8, gt_LOCALE_FR_UTF8. (Makefile.am): Arrange to compile test-mbschr1 and test-mbschr2 and to run test-mbschr1.sh, test-mbschr2.sh. * tests/test-mbsrchr2.sh: Renamed from tests/test-mbsrchr.sh. * tests/test-mbsrchr2.c: Renamed from tests/test-mbsrchr.c. * tests/test-mbsrchr1.sh: New file, based on tests/test-mbmemcasecmp-3.sh. * tests/test-mbsrchr1.c: New file. * modules/mbsrchr-tests (Files): Update accordingly. Add locale-en.m4, locale-fr.m4. (configure.ac): Invoke gt_LOCALE_EN_UTF8, gt_LOCALE_FR_UTF8. (Makefile.am): Arrange to compile test-mbsrchr1 and test-mbsrchr2 and to run test-mbsrchr1.sh, test-mbsrchr2.sh. * tests/test-mbscspn.c (OR): New macro, copied from tests/test-mbsnlen.c. (main): Add test cases with incomplete characters. * tests/test-mbspbrk.c (OR): New macro, copied from tests/test-mbsnlen.c. (main): Add test cases with incomplete characters. * tests/test-mbsspn.c (OR): New macro, copied from tests/test-mbsnlen.c. (main): Add test cases with incomplete characters.
40 lines
506 B
Plaintext
40 lines
506 B
Plaintext
Description:
|
|
Iterating through multibyte strings, faster.
|
|
|
|
Files:
|
|
lib/mbuiterf.h
|
|
lib/mbuiterf.c
|
|
m4/mbiter.m4
|
|
m4/mbrtowc.m4
|
|
|
|
Depends-on:
|
|
extern-inline
|
|
mbchar
|
|
mbrtoc32
|
|
mbsinit
|
|
mbszero
|
|
mbiter-aux
|
|
uchar-h
|
|
bool
|
|
strnlen1
|
|
|
|
configure.ac:
|
|
gl_MBITER
|
|
|
|
Makefile.am:
|
|
lib_SOURCES += mbuiterf.h mbuiterf.c
|
|
|
|
Include:
|
|
"mbuiterf.h"
|
|
|
|
Link:
|
|
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
|
|
$(MBRTOWC_LIB)
|
|
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
|
|
|
|
License:
|
|
LGPL
|
|
|
|
Maintainer:
|
|
all
|