diff options
Diffstat (limited to 'src/common/string_util.cpp')
| -rw-r--r-- | src/common/string_util.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index c489c868b..bd4c33391 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -17,14 +17,16 @@ | |||
| 17 | #include <iconv.h> | 17 | #include <iconv.h> |
| 18 | #endif | 18 | #endif |
| 19 | 19 | ||
| 20 | namespace Common { | ||
| 21 | |||
| 20 | /// Make a string lowercase | 22 | /// Make a string lowercase |
| 21 | std::string LowerStr(std::string str) { | 23 | std::string ToLower(std::string str) { |
| 22 | std::transform(str.begin(), str.end(), str.begin(), ::tolower); | 24 | std::transform(str.begin(), str.end(), str.begin(), ::tolower); |
| 23 | return str; | 25 | return str; |
| 24 | } | 26 | } |
| 25 | 27 | ||
| 26 | /// Make a string uppercase | 28 | /// Make a string uppercase |
| 27 | std::string UpperStr(std::string str) { | 29 | std::string ToUpper(std::string str) { |
| 28 | std::transform(str.begin(), str.end(), str.begin(), ::toupper); | 30 | std::transform(str.begin(), str.end(), str.begin(), ::toupper); |
| 29 | return str; | 31 | return str; |
| 30 | } | 32 | } |
| @@ -541,3 +543,5 @@ std::string UTF16ToUTF8(const std::wstring& input) | |||
| 541 | } | 543 | } |
| 542 | 544 | ||
| 543 | #endif | 545 | #endif |
| 546 | |||
| 547 | } | ||