17 Oct
2005
17 Oct
'05
7:42 a.m.
Peter Dimov wrote:
Jeff Garland wrote:
std::string str1("HeLlO WoRld!"); std::to_upper(str1); // str1=="HELLO WORLD!"
Opening the to_upper can of worms may not be a good idea. ;-)
std::string str1("weiß"); std::to_upper(str1); // str1=="WEISS"?
You could have string::string() grab the locale() :D