# | Line 6 | Line 6 | |
---|---|---|
6 | ||
7 | #include "Hexadecimal.hpp" | |
8 | ||
9 | – | inline byte_t Hexadecimal::hex(const ext::CodePoint& atom) |
10 | – | { |
11 | – | if (atom >= '0' && atom <= '9') return atom - '0'; else if (atom >= 'a' && atom <= 'f') return atom - 'a' + 0xA; else if (atom >= 'A' && atom <= 'F') return atom - 'A' + 0xA; else return 0; |
12 | – | } |
13 | – | |
9 | Hexadecimal::Hexadecimal(const ext::String& string, bool signed_) : Binary(string.GetSize() / 2, 0) | |
10 | { | |
11 | if (string.IsEmpty()) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |