14#ifndef ZEPHYR_INCLUDE_SYS_UTIL_UTF8_H_
15#define ZEPHYR_INCLUDE_SYS_UTIL_UTF8_H_
70char *
utf8_lcpy(
char *dst,
const char *src,
size_t n);
char * utf8_trunc(char *utf8_str)
Properly truncate a NULL-terminated UTF-8 string.
char * utf8_lcpy(char *dst, const char *src, size_t n)
Copies a UTF-8 encoded string from src to dst.
bool utf8_is_valid(const char *s, size_t len)
Check that a string is well-formed UTF-8.
int utf8_count_chars(const char *s)
Counts the characters in a UTF-8 encoded string s.