相关疑难解决方法(0)

std :: wstring VS std :: string

我无法理解之间的差异std::stringstd::wstring.我知道wstring支持Unicode字符等宽字符.我有以下问题:

  1. 我什么时候应该std::wstring用完std::string
  2. 可以std::string保存整个ASCII字符集,包括特殊字符吗?
  3. std::wstring由所有流行的C++编译器的支持?
  4. 什么是" 广角 "?

c++ string unicode c++-faq wstring

716
推荐指数
7
解决办法
29万
查看次数

QString优于std :: string的优点

QString比std :: string有什么优势?普通的std :: string可以存储unicode字符吗?我正在尝试编写一个可以打开各种歌曲文件的程序.这些文件的名称可以使用不同的语言.我听说在这种情况下使用普通字符串将无法正常工作.我想保持应用程序独立于QT并重用代码,例如在android中.你有什么建议

c++ string unicode qt qt-creator

24
推荐指数
3
解决办法
2万
查看次数

标签 统计

c++ ×2

string ×2

unicode ×2

c++-faq ×1

qt ×1

qt-creator ×1

wstring ×1