How could one convert a string to upper case. The examples I have found from googling only have to deal with chars.
std::string str = "STriNg oF mIxID CasE lETteRS"
C++ 11
Using for_each
std::for_each(str.begin(), str.end(), [](char & c){ c = ::toupper(c); });
Using transform
std::transform(str.begin(), str.end(), str.begin(), ::toupper);
C++ (Winodws Only)
_strupr_s(str, str.length());
C++ (Using Boost Library)
boost::to_upper_copy(str)