mirror of
https://github.com/irssi/irssi.git
synced 2026-08-24 02:52:20 +02:00
Add functions get_utf8_{string,char}_width().
This commit is contained in:
parent
d14690767c
commit
d5e0f8097c
2 changed files with 55 additions and 0 deletions
|
|
@ -11,6 +11,10 @@
|
|||
/* Returns width for character (0-2). */
|
||||
int mk_wcwidth(unichar c);
|
||||
|
||||
/* Return the number of columns occupied by a given string. */
|
||||
int get_utf8_char_width(const gchar *);
|
||||
int get_utf8_string_width(const gchar *);
|
||||
|
||||
#define unichar_isprint(c) (((c) & ~0x80) >= 32)
|
||||
#define is_utf8_leading(c) (((c) & 0xc0) != 0x80)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue