diff options
| author | 2014-09-07 11:50:43 -0700 | |
|---|---|---|
| committer | 2014-09-08 15:43:22 -0700 | |
| commit | 5472fd4d9b19011a36604a9c7f9c66f3ebe84e3f (patch) | |
| tree | b55a6013b561cbb1986a04f2154fe18c0774e891 /src/common/string_util.cpp | |
| parent | loader.cpp: improved file extension checking, made Upper/LowerStr useful (diff) | |
| download | yuzu-5472fd4d9b19011a36604a9c7f9c66f3ebe84e3f.tar.gz yuzu-5472fd4d9b19011a36604a9c7f9c66f3ebe84e3f.tar.xz yuzu-5472fd4d9b19011a36604a9c7f9c66f3ebe84e3f.zip | |
Added string_util to common, small changes in loader.cpp
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 | } | ||