ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Represent/Hexadecimal.cpp
(Generate patch)

Comparing Represent/Hexadecimal.cpp (file contents):
Revision 379 by douglas, 2004-12-22T20:42:52-08:00 vs.
Revision 385 by douglas, 2004-12-23T21:01:12-08:00

# Line 43 | Line 43 | Hexadecimal::operator ext::String() cons
43  
44          return string;
45   }
46 +
47 + inline byte_t Hexadecimal::hex(const ext::CodePoint& atom)
48 + {
49 +        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;
50 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines