From d3ec525b7d6ecd8de064d3f3a54d112769d1d3b3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 11 Oct 2025 14:19:39 -0400 Subject: Add unicode support to justify --- include/utf8.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 include/utf8.h (limited to 'include/utf8.h') diff --git a/include/utf8.h b/include/utf8.h new file mode 100644 index 0000000..aa2cac5 --- /dev/null +++ b/include/utf8.h @@ -0,0 +1,14 @@ +#ifndef UTF8_H +#define UTF8_H + +#include + +/** + * @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 -- cgit v1.2.3