summaryrefslogtreecommitdiffstats
path: root/unicode_width.h
diff options
context:
space:
mode:
authorTorsten Bögershausen <tboegi@web.de>2014-05-09 23:51:38 +0200
committerJunio C Hamano <gitster@pobox.com>2014-05-12 19:20:46 +0200
commit08460345b5a221c0076a48c6be875d64b78b6015 (patch)
tree95f5a3a644aa5ad69f4f2c93d12fd319a593c2c7 /unicode_width.h
parentutf8.c: partially update to version 6.3 (diff)
downloadgit-08460345b5a221c0076a48c6be875d64b78b6015.tar.xz
git-08460345b5a221c0076a48c6be875d64b78b6015.zip
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>
Diffstat (limited to 'unicode_width.h')
0 files changed, 0 insertions, 0 deletions