Is there an inbuilt function to convert C++ string from upper case letters to lowercase letters ? If not converting it to cstring and using tolower on each char is the only
Like ereOn says: std::transform(str.begin(), str.end(), str.begin(), std::tolower );
std::transform(str.begin(), str.end(), str.begin(), std::tolower );
Or via for_each: std::for_each(str.begin(), str.end(), std::tolower );
std::for_each(str.begin(), str.end(), std::tolower );
Transform is probably better of the two.