diff options
author | archshift <admin@archshift.com> | 2014-10-24 06:17:01 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-10-24 06:44:10 +0200 |
commit | 7fa4dbd0c6e89aab762eaf29607a0a0ced660847 (patch) | |
tree | 693ec14d1c71c311e5d5d08b6d9f96711f7bced1 /src/common/string_util.cpp | |
parent | Merge pull request #133 from archshift/sdmc-enabled (diff) | |
download | yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.gz yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.bz2 yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.lz yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.xz yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.tar.zst yuzu-7fa4dbd0c6e89aab762eaf29607a0a0ced660847.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/string_util.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 9199e30bc..61f0939c4 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -186,9 +186,9 @@ bool TryParse(const std::string &str, u32 *const output) bool TryParse(const std::string &str, bool *const output) { - if ("1" == str || !strcasecmp("true", str.c_str())) + if ("1" == str || "true" == ToLower(str)) *output = true; - else if ("0" == str || !strcasecmp("false", str.c_str())) + else if ("0" == str || "false" == ToLower(str)) *output = false; else return false; @@ -196,13 +196,6 @@ bool TryParse(const std::string &str, bool *const output) return true; } -std::string StringFromInt(int value) -{ - char temp[16]; - sprintf(temp, "%i", value); - return temp; -} - std::string StringFromBool(bool value) { return value ? "True" : "False"; |