摘要: CString CConvert::UTF82WCS(const char* szU8){ //预转换,得到所需空间的大小; int wcsLen = ::MultiByteToWideChar(CP_UTF8, NULL, szU8, strlen(szU8), NULL, 0); //分配空间要 阅读全文
posted @ 2019-09-06 17:52 久龄 阅读(208) 评论(0) 推荐(0) 编辑
摘要: void CConvert::Split(const std::string& src, const std::string& separator, std::vector<std::string>& dest) //字符串分割到数组{ //参数1:要分割的字符串;参数2:作为分隔符的字符;参数3: 阅读全文
posted @ 2019-09-06 17:42 久龄 阅读(1637) 评论(0) 推荐(0) 编辑