| 83 | typename alloc |
| 84 | > |
| 85 | const std::basic_string<char,traits,alloc> toupper ( |
| 86 | const std::basic_string<char,traits,alloc>& str |
| 87 | ) |
| 88 | { |
| 89 | std::basic_string<char,traits,alloc> temp; |
| 90 | |
| 91 | temp.resize(str.size()); |
| 92 | |
| 93 | for (typename std::basic_string<char,traits,alloc>::size_type i = 0; i < str.size(); ++i) |
| 94 | temp[i] = (char)std::toupper(str[i]); |
| 95 | |
| 96 | return temp; |
| 97 | } |
| 98 | |
| 99 | // ---------------------------------------------------------------------------------------- |
| 100 |