int StringToWString(std::wstring &ws, const std::string &s) { std::wstring wsTmp(s.begin(), s.end()); ws = wsTmp; return 0; }
static void log(const char *buffer) { #if defined(QT_CORE_LIB) qDebug() << buffer; #elif defined(__ANDROID__) __android_log_print(ANDROID_LOG_DEBUG, "Gideros", "%s", buffer); #elif defined(WINSTORE) std::string s(buffer); std::wstring wsTmp(s.begin(), s.end()); OutputDebugString(wsTmp.c_str()); #else printf("%s\n", buffer); #endif }
void A2W( std::wstring &ws, const std::string &s ) { std::wstring wsTmp(s.begin(), s.end()); ws = wsTmp; }
void strConvert(std::wstring &ws, const std::string &s){ wstring wsTmp(s.begin(), s.end()); ws = wsTmp; }
void MsgBox(const char* msg) { std::wstring wsTmp(msg, msg + strlen(msg)); MessageBox(g_nppData._nppHandle, wsTmp.c_str(), PLUGIN_NAME, MB_OK); }
wstring FontText::StringToWString(const string s) { wstring wsTmp(s.begin(), s.end()); return wsTmp; }