diff options
| author | Pieter Wuille <[email protected]> | 2014-06-28 17:35:22 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-28 18:02:42 +0200 |
| commit | de79aaa7a9ad07664461ee8735299aa68c630969 (patch) | |
| tree | 8c5f88f95403ab6c3c5a23374f93e8ab686dc6c9 /src/util.cpp | |
| parent | Merge pull request #3715 (diff) | |
| download | discoin-de79aaa7a9ad07664461ee8735299aa68c630969.tar.xz discoin-de79aaa7a9ad07664461ee8735299aa68c630969.zip | |
Move non-trivial uint256.h methods to uint256.cpp
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 9e4b2b787..e67c0dfd8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -419,6 +419,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) |