mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-23 03:10:01 +08:00
493e734680
1) Set clang-format macro indent. 2) Run clang-format on every files.
20 lines
474 B
C++
20 lines
474 B
C++
#ifndef FTXUI_SCREEN_STRING_HPP
|
|
#define FTXUI_SCREEN_STRING_HPP
|
|
|
|
#include <string>
|
|
|
|
std::string to_string(const std::wstring& s);
|
|
std::wstring to_wstring(const std::string& s);
|
|
|
|
template <typename T>
|
|
std::wstring to_wstring(T s) {
|
|
return to_wstring(std::to_string(s));
|
|
}
|
|
|
|
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 */
|