From 9c7e5a612c09ddae8ce36f012a7025f5a3eb780a Mon Sep 17 00:00:00 2001 From: "Kan-Ru Chen (陳侃如)" Date: Thu, 13 Feb 2014 19:19:40 +0800 Subject: Use mk_wcwidth instead mk_wcwidth_cjk --- src/unistring.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unistring.h') diff --git a/src/unistring.h b/src/unistring.h index 7d78d134..340115eb 100644 --- a/src/unistring.h +++ b/src/unistring.h @@ -44,7 +44,7 @@ namespace ledger { -int mk_wcwidth_cjk(boost::uint32_t ucs); +int mk_wcwidth(boost::uint32_t ucs); /** * @class unistring @@ -86,7 +86,7 @@ public: std::size_t width() const { std::size_t width = 0; foreach (const boost::uint32_t& ch, utf32chars) { - width += mk_wcwidth_cjk(ch); + width += mk_wcwidth(ch); } return width; } -- cgit v1.2.3