Adds baseX property for InputWindowElement.

This commit is contained in:
2021-08-26 15:05:41 +09:00
parent a07c61675e
commit bc56befc8e
5 changed files with 60 additions and 14 deletions

View File

@@ -30,6 +30,14 @@ static inline std::wstring ConvertStrToWstr(const std::string& str) {
}
}
static inline size_t CountWstrBytes(const std::wstring& str) {
size_t n = 0;
for (const auto c : str) {
n += c > UINT8_MAX? 2: 1;
}
return n;
}
[[noreturn]]
static inline void Abort(const std::string& msg) {