Use mk_wcwidth instead mk_wcwidth_cjk
This commit is contained in:
parent
d5b5ea0213
commit
9c7e5a612c
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
namespace ledger {
|
namespace ledger {
|
||||||
|
|
||||||
int mk_wcwidth_cjk(boost::uint32_t ucs);
|
int mk_wcwidth(boost::uint32_t ucs);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class unistring
|
* @class unistring
|
||||||
|
|
@ -86,7 +86,7 @@ public:
|
||||||
std::size_t width() const {
|
std::size_t width() const {
|
||||||
std::size_t width = 0;
|
std::size_t width = 0;
|
||||||
foreach (const boost::uint32_t& ch, utf32chars) {
|
foreach (const boost::uint32_t& ch, utf32chars) {
|
||||||
width += mk_wcwidth_cjk(ch);
|
width += mk_wcwidth(ch);
|
||||||
}
|
}
|
||||||
return width;
|
return width;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue