Top "Wstring" questions

C++ standard library class to hold strings with wide characters.

std::wstring VS std::string

I am not able to understand the differences between std::string and std::wstring. I know wstring supports wide characters …

c++ string unicode c++-faq wstring
How to convert wstring into string?

The question is how to convert wstring to string? I have next example : #include <string> #include <iostream&…

c++ unicode stl wstring
C++ Convert string (or char*) to wstring (or wchar_t*)

string s = "おはよう"; wstring ws = FUNCTION(s, ws); How would i assign the contents of s to ws? Searched google and …

c++ string wstring
Case insensitive std::string.find()

I am using std::string's find() method to test if a string is a substring of another. Now I need …

c++ string stl case-insensitive wstring
How to initialize and print a std::wstring?

I had the code: std::string st = "SomeText"; ... std::cout << st; and that worked fine. But now my …

c++ c++-cli wstring
Read Unicode UTF-8 file into wstring

How can I read a Unicode (UTF-8) file into wstring(s) on the Windows platform?

c++ file unicode utf-8 wstring
How to convert std::wstring to LPCTSTR in C++?

I have Windows registry key value in wstring format. Now I want to pass it to this code (first argument …

c++ string type-conversion wstring
Convert wstring to string encoded in UTF-8

I need to convert between wstring and string. I figured out, that using codecvt facet should do the trick, but …

c++ string utf-8 wstring
Convert CString to std::wstring

How can I convert from CString to std::wstring?

c++ string wstring
What's "wrong" with C++ wchar_t and wstrings? What are some alternatives to wide characters?

I have seen a lot of people in the C++ community(particularly ##c++ on freenode) resent the use of wstrings …

c++ winapi unicode internationalization wstring