mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
boost: drop boost dependency in utilstrencodings.cpp
This commit is contained in:
parent
e1c9467766
commit
352058e8b0
1 changed files with 4 additions and 4 deletions
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <cstdlib>
|
||||||
#include <boost/foreach.hpp>
|
#include <cstring>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -53,9 +53,9 @@ signed char HexDigit(char c)
|
||||||
|
|
||||||
bool IsHex(const string& str)
|
bool IsHex(const string& str)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(char c, str)
|
for(std::string::const_iterator it(str.begin()); it != str.end(); ++it)
|
||||||
{
|
{
|
||||||
if (HexDigit(c) < 0)
|
if (HexDigit(*it) < 0)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return (str.size() > 0) && (str.size()%2 == 0);
|
return (str.size() > 0) && (str.size()%2 == 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue