Files
Pádraig Brady 6c2dda15e0 maint: move utf8 specific routines to a new utf8 module
* bootstrap.conf: Reference the new "utf8" module.
* cfg.mk: Adjust checks as per mbbuf.
* gl/lib/utf8.c: Include the implementation.
* gl/lib/utf8.h: Add is_utf8_charset() and u8_count().
Note we don't give is_utf8_charset external-linkage
due to its static cache.
* gl/local.mk: Reference the new module files.
* gl/modules/utf8: Add the module definition and dependencies.
* src/cut.c: Use is_utf8_charset() and u8_count().
* src/numfmt.c: Use is_utf8_charset().
* src/system.h: Remove is_utf8_charset() definition.
2026-10-03 15:47:15 +01:00

31 lines
252 B
Plaintext

Description:
UTF-8 helpers.
Files:
lib/utf8.c
lib/utf8.h
Depends-on:
bool
c99
extern-inline
idx
mbrtoc32
mbszero
unistr/u8-check
stdint-h
configure.ac:
Makefile.am:
lib_SOURCES += utf8.c utf8.h
Include:
"utf8.h"
License:
LGPLv2+
Maintainer:
all