python string upper case code example
Example 1: java string to lower case
String s1 = "JAVATPOINT HELLO stRIng";
String s1lower = s1.toLowerCase(); // s1lower = "javatpoint hello string"
Example 2: string to upper c++
std::string data = "This is a sample string.";
// convert string to upper case
std::for_each(data.begin(), data.end(), [](char & c){
c = ::toupper(c);
});