summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorzhupengfei <zhupengfei321@sina.cn>2018-07-25 02:03:43 +0200
committerfearlessTobi <thm.frey@gmail.com>2018-07-29 15:05:43 +0200
commitff510157d8f26004a1730650202bcae644921cca (patch)
tree06e4b531f637082a684e52345d4da757ec8245b6 /src/common
parentMerge pull request #847 from lioncash/ncm (diff)
downloadyuzu-ff510157d8f26004a1730650202bcae644921cca.tar
yuzu-ff510157d8f26004a1730650202bcae644921cca.tar.gz
yuzu-ff510157d8f26004a1730650202bcae644921cca.tar.bz2
yuzu-ff510157d8f26004a1730650202bcae644921cca.tar.lz
yuzu-ff510157d8f26004a1730650202bcae644921cca.tar.xz
yuzu-ff510157d8f26004a1730650202bcae644921cca.tar.zst
yuzu-ff510157d8f26004a1730650202bcae644921cca.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/string_util.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 1f0456aee..0ca663032 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -2,12 +2,12 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <algorithm>
#include <cctype>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
-#include <boost/range/algorithm/transform.hpp>
#include "common/common_paths.h"
#include "common/logging/log.h"
#include "common/string_util.h"
@@ -24,13 +24,15 @@ namespace Common {
/// Make a string lowercase
std::string ToLower(std::string str) {
- boost::transform(str, str.begin(), ::tolower);
+ std::transform(str.begin(), str.end(), str.begin(),
+ [](unsigned char c) { return std::tolower(c); });
return str;
}
/// Make a string uppercase
std::string ToUpper(std::string str) {
- boost::transform(str, str.begin(), ::toupper);
+ std::transform(str.begin(), str.end(), str.begin(),
+ [](unsigned char c) { return std::toupper(c); });
return str;
}