Click to See Complete Forum and Search --> : Upper


sundar divas
06-03-2007, 03:28 PM
Do we have a built-in function to convert a string declared as

string A="Ab";

to uppercase

Danny
06-03-2007, 03:56 PM
What's a built-in function? A standard (extern) function or a member function of std::string?
There's no member function of std::string that does that but you can use toupper to convert each character individually.
This omission is about to be fixed soon, though. There has been a lot of demand for such a member function.