# | Line 25 | Line 25 | public: | |
---|---|---|
25 | virtual operator ext::String() const; | |
26 | }; | |
27 | ||
28 | + | inline byte_t Hexadecimal::hex(const ext::CodePoint& atom) |
29 | + | { |
30 | + | 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; |
31 | + | } |
32 | + | |
33 | #endif // _Hexadecimal_hpp_ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |