| 305 | // Converts the elements of the given string. This version uses a pointer to |
| 306 | // clearly differentiate it from the non-pointer variant. |
| 307 | template <class str> inline void StringToUpperASCII(str* s) { |
| 308 | for (typename str::iterator i = s->begin(); i != s->end(); ++i) |
| 309 | *i = butil::ToUpperASCII(*i); |
| 310 | } |
| 311 | |
| 312 | template <class str> inline str StringToUpperASCII(const str& s) { |
| 313 | // for std::string and std::wstring |