summaryrefslogtreecommitdiff
path: root/src/shared/utf8.h
diff options
context:
space:
mode:
authorShawn Landden <shawn@churchofgit.com>2013-09-20 18:37:33 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-10-13 17:56:54 -0400
commitf405e86de361ec305dc2b8634efeaa23dc144053 (patch)
treeb3fe37e4a143a5d2dee14eb34d96f96cb03b84fc /src/shared/utf8.h
parent14a9283eb38a93ec384c322ccbe06352c86a25f8 (diff)
util, utf8: make ellipsize take multi-byte characters into account
rename old versions to ascii_* Do not take into account zerowidth characters, but do consider double-wide characters. Import needed utf8 helper code from glib. v3: rebase ontop of utf8 restructuring work [zj: tweak the algorithm a bit, move new code to separate file]
Diffstat (limited to 'src/shared/utf8.h')
-rw-r--r--src/shared/utf8.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/utf8.h b/src/shared/utf8.h
index 96a03ea7cb..e3eef11bb9 100644
--- a/src/shared/utf8.h
+++ b/src/shared/utf8.h
@@ -35,3 +35,4 @@ char *ascii_filter(const char *s);
char *utf16_to_utf8(const void *s, size_t length);
int utf8_encoded_valid_unichar(const char *str);
+int utf8_encoded_to_unichar(const char *str);