OrangeAlmondSoap OrangeAlmondSoap - 8 months ago 48
C++ Question

Convert a String In C++ To Upper Case

How could one convert a string to upper case. The examples I have found from googling only have to deal with chars.


Boost string algorithms:

#include <boost/algorithm/string.hpp>
#include <string>

std::string str = "Hello World";


std::string newstr = boost::to_upper_copy<std::string>("Hello World");