move includes around to lessen overall load

This commit is contained in:
moneromooo-monero
2017-11-25 22:25:05 +00:00
parent 38ecd0526e
commit 09ce03d612
73 changed files with 212 additions and 161 deletions

View File

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