Commit: 24a327427d7e7a1ef5c69a0f90bc6297ab17a9ab
Parent: 09212f9d110e268332041c6038895e581d73d4bd
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-07-09 17:58:50
Tree: b80eaa9a322870601c8a04906d09ffefa4940bd8

shared/util: Introduce strnlenutf8 This introduces strnlenutf8 which works similarly to strnlen but return only the number of valid bytes of UTF-8 encoded string then replace the other copies of similar code.

Diffstat

M src/shared/util.c | 52 +++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/shared/util.h | 2 ++

2 files changed, 17 insertions(+), 37 deletions(-)

View Full Diff | Patch