diff options
| author | 2014-12-07 23:36:33 +0100 | |
|---|---|---|
| committer | 2014-12-07 23:52:17 +0100 | |
| commit | 3d8c6e61beef922f79733718c5314c0d7015e93f (patch) | |
| tree | b1bfa736ff80f0229d3740c943214065dc62f9bd /src/common/string_util.cpp | |
| parent | Integrate Boost into build system and perform a trivial cleanup in vertex_sha... (diff) | |
| download | yuzu-3d8c6e61beef922f79733718c5314c0d7015e93f.tar.gz yuzu-3d8c6e61beef922f79733718c5314c0d7015e93f.tar.xz yuzu-3d8c6e61beef922f79733718c5314c0d7015e93f.zip | |
StringUtil: Perform some minimal cleanup.
Diffstat (limited to 'src/common/string_util.cpp')
| -rw-r--r-- | src/common/string_util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 7fb7ede5e..2ec4c8e05 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 | 2 | // Licensed under GPLv2 |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <algorithm> | 5 | #include <boost/range/algorithm.hpp> |
| 6 | 6 | ||
| 7 | #include "common/common.h" | 7 | #include "common/common.h" |
| 8 | #include "common/string_util.h" | 8 | #include "common/string_util.h" |
| @@ -18,13 +18,13 @@ namespace Common { | |||
| 18 | 18 | ||
| 19 | /// Make a string lowercase | 19 | /// Make a string lowercase |
| 20 | std::string ToLower(std::string str) { | 20 | std::string ToLower(std::string str) { |
| 21 | std::transform(str.begin(), str.end(), str.begin(), ::tolower); | 21 | boost::transform(str, str.begin(), ::tolower); |
| 22 | return str; | 22 | return str; |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | /// Make a string uppercase | 25 | /// Make a string uppercase |
| 26 | std::string ToUpper(std::string str) { | 26 | std::string ToUpper(std::string str) { |
| 27 | std::transform(str.begin(), str.end(), str.begin(), ::toupper); | 27 | boost::transform(str, str.begin(), ::toupper); |
| 28 | return str; | 28 | return str; |
| 29 | } | 29 | } |
| 30 | 30 | ||