mirror of
https://github.com/monero-project/monero.git
synced 2025-08-02 13:06:10 -04:00
move includes around to lessen overall load
This commit is contained in:
parent
38ecd0526e
commit
09ce03d612
73 changed files with 212 additions and 161 deletions
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "string_tools.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
# include <winsock2.h>
|
||||
#else
|
||||
|
@ -56,6 +58,16 @@ namespace string_tools
|
|||
|
||||
return true;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
bool validate_hex(uint64_t length, const std::string& str)
|
||||
{
|
||||
if (str.size() != length)
|
||||
return false;
|
||||
for (char c: str)
|
||||
if (!isxdigit(c))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue