| 63 | typename alloc |
| 64 | > |
| 65 | const std::basic_string<char,traits,alloc> tolower ( |
| 66 | const std::basic_string<char,traits,alloc>& str |
| 67 | ) |
| 68 | { |
| 69 | std::basic_string<char,traits,alloc> temp; |
| 70 | |
| 71 | temp.resize(str.size()); |
| 72 | |
| 73 | for (typename std::basic_string<char,traits,alloc>::size_type i = 0; i < str.size(); ++i) |
| 74 | temp[i] = (char)std::tolower(str[i]); |
| 75 | |
| 76 | return temp; |
| 77 | } |
| 78 | |
| 79 | // ---------------------------------------------------------------------------------------- |
| 80 |