| 59 | } |
| 60 | |
| 61 | bool IsHex(const std::string& str) |
| 62 | { |
| 63 | for(std::string::const_iterator it(str.begin()); it != str.end(); ++it) |
| 64 | { |
| 65 | if (HexDigit(*it) < 0) |
| 66 | return false; |
| 67 | } |
| 68 | return (str.size() > 0) && (str.size()%2 == 0); |
| 69 | } |
| 70 | |
| 71 | bool IsHexNumber(const std::string& str) |
| 72 | { |