diff options
author | Kan-Ru Chen (陳侃如) <kanru@kanru.info> | 2014-02-13 19:19:40 +0800 |
---|---|---|
committer | Kan-Ru Chen (陳侃如) <kanru@kanru.info> | 2014-02-13 19:19:40 +0800 |
commit | 9c7e5a612c09ddae8ce36f012a7025f5a3eb780a (patch) | |
tree | acc9bac43144d55a307e47c463f62ee4c8ce818a /src/unistring.h | |
parent | d5b5ea02138107918642532a266550d1ab4122d3 (diff) | |
download | fork-ledger-9c7e5a612c09ddae8ce36f012a7025f5a3eb780a.tar.gz fork-ledger-9c7e5a612c09ddae8ce36f012a7025f5a3eb780a.tar.bz2 fork-ledger-9c7e5a612c09ddae8ce36f012a7025f5a3eb780a.zip |
Use mk_wcwidth instead mk_wcwidth_cjk
Diffstat (limited to 'src/unistring.h')
-rw-r--r-- | src/unistring.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |