MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / display_width

Function display_width

src/indicators.hpp:1689–1692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1687} // namespace details
1688
1689static 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
1694static inline int display_width(const std::wstring &input) {
1695 return details::mk_wcswidth(input.c_str(), input.size());

Callers 8

ProgressScaleWriterClass · 0.85
get_prefix_textMethod · 0.85
get_postfix_textMethod · 0.85
get_prefix_textMethod · 0.85
get_postfix_textMethod · 0.85
get_prefix_textMethod · 0.85
get_postfix_textMethod · 0.85

Calls 3

mk_wcswidthFunction · 0.85
utf8_decodeFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected