Kill AsciiToHex

Now superseded by Common::FromChars
This commit is contained in:
get
2023-06-10 07:56:40 -05:00
parent 5029924ba1
commit 445bf8d2c6
4 changed files with 36 additions and 32 deletions

View File

@ -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;