summaryrefslogtreecommitdiff
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2016-02-25 21:48:39 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2016-02-26 09:14:40 +0100
commitc34f9aba29b965bf1da7e16da91ebf94ae123e89 (patch)
tree84fbe45575d63ca93df3f3631af55deb867b5350 /src/calcurse.h
parent85772d746f7b1123b94ce9556273b4a9df77eeaf (diff)
downloadcalcurse-c34f9aba29b965bf1da7e16da91ebf94ae123e89.zip
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 <lfleischer@calcurse.org>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h1
1 files changed, 1 insertions, 0 deletions
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__));