mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Replace std::is[x]digit() with non-STL versions
std::isdigit() can be replaced with SDL_isdigit(), but there's no equivalent for std::isxdigit() in the SDL standard library. So we'll just use libc isxdigit() instead, it's fine.
This commit is contained in:
@@ -211,14 +211,14 @@ bool is_positive_num(const std::string& str, bool hex)
|
||||
{
|
||||
if (hex)
|
||||
{
|
||||
if (!std::isxdigit(static_cast<unsigned char>(str[i])))
|
||||
if (!isxdigit(static_cast<unsigned char>(str[i])))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!std::isdigit(static_cast<unsigned char>(str[i])))
|
||||
if (!SDL_isdigit(static_cast<unsigned char>(str[i])))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user