diff options
| author | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-10 07:56:40 -0500 |
|---|---|---|
| committer | get <45425365+Minty-Meeo@users.noreply.github.com> | 2023-06-22 00:06:50 -0500 |
| commit | 445bf8d2c69bf176ed1b7899c814fc9354058b0e (patch) | |
| tree | 5eec7ec4bb8d8a178d64ccb0f795a51777e4ba01 /Source/Core/Common/StringUtil.cpp | |
| parent | 5029924ba104fdc5bc78a804fb35cdb5d7418a8f (diff) | |
Kill AsciiToHex
Now superseded by Common::FromChars
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index ba07db1206..033bc66407 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -85,25 +85,6 @@ std::string HexDump(const u8* data, size_t size) return out; } -// faster than sscanf -bool AsciiToHex(const std::string& _szValue, u32& result) -{ - // Set errno to a good state. - errno = 0; - - char* endptr = nullptr; - const u32 value = strtoul(_szValue.c_str(), &endptr, 16); - - if (!endptr || *endptr) - return false; - - if (errno == ERANGE) - return false; - - result = value; - return true; -} - bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args) { int writtenCount; |
