summaryrefslogtreecommitdiff
path: root/src/core/utf8.h
diff options
context:
space:
mode:
authorXavier G <xavier.github@kindwolf.org>2016-05-13 01:39:14 +0200
committerXavier G <xavier.github@kindwolf.org>2016-05-13 01:39:14 +0200
commit5c74a3bb88db0fa32c459f8494e9f5a62a821baa (patch)
treeed349cfa4629686ab3a5e54d6aab556352c70faa /src/core/utf8.h
parent5538578820550c1a62dc4d0e6451332229eeee75 (diff)
downloadirssi-5c74a3bb88db0fa32c459f8494e9f5a62a821baa.zip
Move advance() from fe-common/core to core.
Diffstat (limited to 'src/core/utf8.h')
-rw-r--r--src/core/utf8.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/utf8.h b/src/core/utf8.h
index 63261a24..09397f69 100644
--- a/src/core/utf8.h
+++ b/src/core/utf8.h
@@ -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)