| 1687 | } // namespace details |
| 1688 | |
| 1689 | static inline int display_width(const std::string &input) { |
| 1690 | using namespace unicode::details; |
| 1691 | return mk_wcswidth(utf8_decode(input).c_str(), input.size()); |
| 1692 | } |
| 1693 | |
| 1694 | static inline int display_width(const std::wstring &input) { |
| 1695 | return details::mk_wcswidth(input.c_str(), input.size()); |
no test coverage detected