mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
Move advance() from fe-common/core to core.
This commit is contained in:
parent
5538578820
commit
5c74a3bb88
3 changed files with 20 additions and 16 deletions
|
|
@ -14,6 +14,11 @@ typedef guint32 unichar;
|
|||
/* Returns width for character (0-2). */
|
||||
int mk_wcwidth(unichar c);
|
||||
|
||||
/* Advance the str pointer one character further; return the number of columns
|
||||
* occupied by the skipped character.
|
||||
*/
|
||||
int advance(char const **str, gboolean utf8);
|
||||
|
||||
#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