chiark / gitweb /
util, utf8: make ellipsize take multi-byte characters into account
authorShawn Landden <shawn@churchofgit.com>
Sat, 21 Sep 2013 01:37:33 +0000 (18:37 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 13 Oct 2013 21:56:54 +0000 (17:56 -0400)
commitf405e86de361ec305dc2b8634efeaa23dc144053
treeb3fe37e4a143a5d2dee14eb34d96f96cb03b84fc
parent14a9283eb38a93ec384c322ccbe06352c86a25f8
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]
Makefile.am
TODO
src/shared/gunicode.c [new file with mode: 0644]
src/shared/gunicode.h [new file with mode: 0644]
src/shared/utf8.c
src/shared/utf8.h
src/shared/util.c
src/shared/util.h