1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-06-15 15:25:49 +00:00
Files
Bruno Haible 1429a91942 mbiter: Implement multi-byte per encoding error consistently.
* lib/mbiter.h: Include mbiter-aux.h.
(struct mbiter_multi): Add field is_utf8.
(mbiter_multi_next): Invoke mbiter_is_utf8, mbiter_utf8_maximal_subpart.
(mbi_init): Initialize the field is_utf8.
* modules/mbiter (Depends-on): Add mbiter-aux.
* tests/test-mbs_startswith2.c (main): Add test cases with incomplete
characters not at the end of the string.
* tests/test-mbs_endswith2.c (OR): New macro, copied from
tests/test-mbsnlen.c.
(main): Add test cases with incomplete characters not at the end of the
string.
2026-05-26 01:31:22 +02:00

39 lines
482 B
Plaintext

Description:
Iterating through multibyte strings.
Files:
lib/mbiter.h
lib/mbiter.c
m4/mbiter.m4
m4/mbrtowc.m4
Depends-on:
extern-inline
mbchar
mbrtoc32
mbsinit
mbszero
mbiter-aux
uchar-h
bool
configure.ac:
gl_MBITER
Makefile.am:
lib_SOURCES += mbiter.h mbiter.c
Include:
"mbiter.h"
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
License:
LGPLv2+
Maintainer:
all