User Tools

Site Tools


c:string:string-to-wstring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
c:string:string-to-wstring [2019/08/21 14:21]
odefta
c:string:string-to-wstring [2019/08/21 14:21] (current)
odefta
Line 2: Line 2:
  
 Don't use the convert variable inside the to_wstring function. It will make it perform slower. Don't use the convert variable inside the to_wstring function. It will make it perform slower.
 +
 <code cpp> <code cpp>
 std::​wstring_convert<​std::​codecvt_utf8<​wchar_t>,​ wchar_t> conv_; std::​wstring_convert<​std::​codecvt_utf8<​wchar_t>,​ wchar_t> conv_;
- 
  
 std::string wideToStr(const std::​wstring&​ wstr) { std::string wideToStr(const std::​wstring&​ wstr) {
c/string/string-to-wstring.txt ยท Last modified: 2019/08/21 14:21 by odefta