diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-06-30 11:26:55 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-06-30 11:27:46 +0200 |
| commit | ac26571d2b118b5df9e7fd2585ecac1eeb7ed94d (patch) | |
| tree | 811cace235d41a40fe2a1eacce734df9c1ac9f55 /src/util.cpp | |
| parent | Merge pull request #4440 (diff) | |
| parent | Move non-trivial uint256.h methods to uint256.cpp (diff) | |
| download | discoin-ac26571d2b118b5df9e7fd2585ecac1eeb7ed94d.tar.xz discoin-ac26571d2b118b5df9e7fd2585ecac1eeb7ed94d.zip | |
Merge pull request #4437
de79aaa Move non-trivial uint256.h methods to uint256.cpp (Pieter Wuille)
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp index 9591372f9..5a8f85ade 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -420,6 +420,11 @@ const signed char p_util_hexdigit[256] = -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, }; +signed char HexDigit(char c) +{ + return p_util_hexdigit[(unsigned char)c]; +} + bool IsHex(const string& str) { BOOST_FOREACH(char c, str) |