summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-07-18 23:57:12 -0400
committerGravatar Lioncash2018-07-18 23:57:15 -0400
commit33fbcb45a7d43fc504c5382e23de12941289aee5 (patch)
tree01434b8e2153f37f74e065baf52f65a79764f3ad /src/common/string_util.cpp
parentMerge pull request #691 from lioncash/guard (diff)
downloadyuzu-33fbcb45a7d43fc504c5382e23de12941289aee5.tar.gz
yuzu-33fbcb45a7d43fc504c5382e23de12941289aee5.tar.xz
yuzu-33fbcb45a7d43fc504c5382e23de12941289aee5.zip
string_util: Remove AsciiToHex()
Easy TODO
Diffstat (limited to 'src/common/string_util.cpp')
-rw-r--r--src/common/string_util.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 0027888c7..f3ad3d68a 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -34,18 +34,6 @@ std::string ToUpper(std::string str) {
34 return str; 34 return str;
35} 35}
36 36
37// faster than sscanf
38bool AsciiToHex(const char* _szValue, u32& result) {
39 char* endptr = nullptr;
40 const u32 value = strtoul(_szValue, &endptr, 16);
41
42 if (!endptr || *endptr)
43 return false;
44
45 result = value;
46 return true;
47}
48
49// For Debugging. Read out an u8 array. 37// For Debugging. Read out an u8 array.
50std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) { 38std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) {
51 std::ostringstream oss; 39 std::ostringstream oss;