11 2020 档案
摘要:int Ansi_To_Unicode(string strSrc, wstring& strRet){ wchar_t wBuff[102400] = { 0 }; CHAR sBuff[102400] = { 0 }; int iRet = MultiByteToWideChar(CP_ACP,
阅读全文
摘要:int Utf8_To_Unicode(string strSrc, wstring& strRet){ wchar_t wBuff[102400] = { 0 }; int iRet = MultiByteToWideChar(CP_UTF8, 0, strSrc.c_str(), -1, wBu
阅读全文
摘要:void MySplit(const string& s, vector<string>& v, const string& c){ v.clear(); string::size_type pos1 = 0, pos2 = s.find(c); while (string::npos != pos
阅读全文
摘要:template <class Type>Type StringToNum(const string& str){ istringstream iss(str); Type num; iss >> num; return num;} template <class Type>string NumTo
阅读全文