]> git.ipfire.org Git - thirdparty/git.git/commit - utf8.c
utf8.c: use a table for double_width
authorTorsten Bögershausen <tboegi@web.de>
Fri, 9 May 2014 21:51:38 +0000 (23:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 May 2014 17:20:46 +0000 (10:20 -0700)
commit08460345b5a221c0076a48c6be875d64b78b6015
tree95f5a3a644aa5ad69f4f2c93d12fd319a593c2c7
parentd813ab970db8b57b70bdd1b7e5feddec1c3fd84e
utf8.c: use a table for double_width

Refactor git_wcwidth() and replace the if-else-if chain.
Use the table double_width which is scanned by the bisearch() function,
which is already used to find combining code points.

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
utf8.c