statusbar: use boost::format instead of c-style printf
This commit is contained in:
@@ -31,4 +31,9 @@ size_t wideLength(const std::wstring &ws);
|
||||
void wideCut(std::wstring &ws, size_t max_length);
|
||||
std::wstring wideShorten(const std::wstring &ws, size_t max_length);
|
||||
|
||||
inline std::string wideShorten(const std::string &s, size_t max_length)
|
||||
{
|
||||
return ToString(wideShorten(ToWString(s), max_length));
|
||||
}
|
||||
|
||||
#endif // NCMPCPP_UTILITY_WIDE_STRING_h
|
||||
|
||||
Reference in New Issue
Block a user