diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-10 13:24:12 -0400 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2014-10-15 15:13:20 -0400 |
commit | 352058e8b0da4ec37b2f1891716c53adc2957a02 (patch) | |
tree | 0f5a62d6bb3397bd4dcfc9fafa866bc11fd6b7f4 | |
parent | e1c946776652a177e3b46db02391263cc24bfd5a (diff) |
boost: drop boost dependency in utilstrencodings.cpp
-rw-r--r-- | src/utilstrencodings.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp index b9e64c5fe1..81e156f43f 100644 --- a/src/utilstrencodings.cpp +++ b/src/utilstrencodings.cpp @@ -9,8 +9,8 @@ #include <errno.h> #include <limits> - -#include <boost/foreach.hpp> +#include <cstdlib> +#include <cstring> using namespace std; @@ -53,9 +53,9 @@ signed char HexDigit(char c) 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 (str.size() > 0) && (str.size()%2 == 0); |