toUpper()

papa@arbolone.ca papa@arbolone.ca
Tue Jun 30 22:58:00 GMT 2015


I would like to write a function to capitalize letters, say...
std::wstring toUpper(const std::wstring wstr){
for ( auto it = wstr.begin(); it != wstr.end(); ++it){
        global_wapstr.append(std::towupper(&it));

}
}

This doesn’t work, but doesn’t the standard already have something like 
std::wstring::toUpper(...)?

Thanks in advance 


---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com



More information about the Gcc-help mailing list