From c34f9aba29b965bf1da7e16da91ebf94ae123e89 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 25 Feb 2016 21:48:39 +0100 Subject: Refactor UTF-8 chopping Add a function that makes sure a string does not exceed a given display size. If the string is too long, dots ("...") are appended. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index e59ea59..bc3bf11 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -1090,6 +1090,7 @@ void ui_todo_set_view(int); /* utf8.c */ int utf8_width(char *); int utf8_strwidth(char *); +int utf8_chop(char *, int); /* utils.c */ void exit_calcurse(int) __attribute__ ((__noreturn__)); -- cgit v1.2.3-54-g00ecf