Parent Directory
|
Revision Log
Initial revision
| 1 | #include <algorithm> |
| 2 | #include <cctype> |
| 3 | #include "StrUtils.h" |
| 4 | |
| 5 | namespace FCUtils { |
| 6 | |
| 7 | string ToLower(const string &s) { |
| 8 | string t=s; |
| 9 | std::transform( t.begin(), t.end(), t.begin(), std::tolower); |
| 10 | return t; |
| 11 | } |
| 12 | |
| 13 | string ToLower(const char *s){ |
| 14 | return ToLower(string(s)); |
| 15 | } |
| 16 | |
| 17 | }; // namespace FCUtils |
| ViewVC Help | |
| Powered by ViewVC 1.1.23 |