diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-30 23:13:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-30 23:13:34 +0200 |
commit | e6b08b22098e3be4ff1447167f520744b4eb3ea2 (patch) | |
tree | f4377818f9f9279a56f92d3ebc9c73735f90e375 | |
parent | Merge pull request #867 from MerryMage/dynarmic (diff) | |
parent | common/string_utils: replace boost::transform with std counterpart (diff) | |
download | yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar.gz yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar.bz2 yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar.lz yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar.xz yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.tar.zst yuzu-e6b08b22098e3be4ff1447167f520744b4eb3ea2.zip |
-rw-r--r-- | src/common/string_util.cpp | 8 |
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; } |