blob: aa2cac572422a3d34ad9eaa309bc14b8948e9632 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef UTF8_H
#define UTF8_H
#include <stddef.h>
/**
* @brief Calculate the display width of a UTF-8 string
*
* @param str The UTF-8 encoded string
* @return The number of characters (display width)
*/
size_t utf8_display_width(const char *str);
#endif
|