Tidy utf8.c a little: build table on first use, and make utf8_width take

a u_int rather than splitting and then combining again in utf8_split.
This commit is contained in:
nicm
2015-11-12 12:19:57 +00:00
parent 0cc812ae34
commit d6daf37df4
3 changed files with 30 additions and 54 deletions

2
tmux.h
View File

@@ -2181,7 +2181,7 @@ void session_group_synchronize1(struct session *, struct session *);
void session_renumber_windows(struct session *);
/* utf8.c */
void utf8_build(void);
u_int utf8_width(u_int);
void utf8_set(struct utf8_data *, u_char);
int utf8_open(struct utf8_data *, u_char);
int utf8_append(struct utf8_data *, u_char);