summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-12-12 17:32:57 +0100
committerGravatar Tony Wasserka2014-12-12 17:32:57 +0100
commit33e61ef514d2b1a32eea10161d900f1e2e5c0ba2 (patch)
treed4f7e432ab42cf7fad3834bb14ba72b54b346cc0 /src/common/string_util.cpp
parentMerge pull request #268 from bunnei/dsp-read-pipe-if-possible (diff)
parentStringUtil: Perform some minimal cleanup. (diff)
downloadyuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.gz
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.tar.xz
yuzu-33e61ef514d2b1a32eea10161d900f1e2e5c0ba2.zip
Merge pull request #261 from neobrain/boost
Add Boost as a submodule and add some minor cleanups using Boost.Range
Diffstat (limited to 'src/common/string_util.cpp')
-rw-r--r--src/common/string_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 19e162c27..7a8274a91 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
20std::string ToLower(std::string str) { 20std::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
26std::string ToUpper(std::string str) { 26std::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