Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
util_utf8.h
Go to the documentation of this file.
1/*
2 * Copyright The Zephyr Project Contributors
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
13
14#ifndef ZEPHYR_INCLUDE_SYS_UTIL_UFT8_H_
15#define ZEPHYR_INCLUDE_SYS_UTIL_UFT8_H_
16
17#include <stddef.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27
53char *utf8_trunc(char *utf8_str);
54
69char *utf8_lcpy(char *dst, const char *src, size_t n);
70
83int utf8_count_chars(const char *s);
84
85#ifdef __cplusplus
86}
87#endif
88
92
93#endif /* ZEPHYR_INCLUDE_SYS_UTIL_UFT8_H_ */
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition asm-macro-32-bit-gnu.h:17
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.
int utf8_count_chars(const char *s)
Counts the characters in a UTF-8 encoded string s.