2019-06-24 23:39:37 +02:00
|
|
|
#ifndef FTXUI_SCREEN_STRING_HPP
|
|
|
|
|
#define FTXUI_SCREEN_STRING_HPP
|
|
|
|
|
|
2018-09-18 08:48:40 +02:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
std::string to_string(const std::wstring& s);
|
|
|
|
|
std::wstring to_wstring(const std::string& s);
|
2019-01-06 16:10:57 +01:00
|
|
|
|
2020-03-23 21:26:00 +01:00
|
|
|
template <typename T>
|
2019-01-06 16:10:57 +01:00
|
|
|
std::wstring to_wstring(T s) {
|
|
|
|
|
return to_wstring(std::to_string(s));
|
|
|
|
|
}
|
2019-06-24 23:39:37 +02:00
|
|
|
|
|
|
|
|
int wchar_width(wchar_t);
|
|
|
|
|
int wchar_width_cjk(wchar_t);
|
|
|
|
|
int wstring_width(const std::wstring&);
|
|
|
|
|
int wstring_width_cjk(const std::wstring&);
|
|
|
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_SCREEN_STRING_HPP */
|