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 421 by douglas, 2004-12-27T14:43:01-08:00 vs.
Revision 422 by douglas, 2005-03-09T19:08:17-08:00

# Line 17 | Line 17 | Hexadecimal::Hexadecimal(const ext::Stri
17  
18          size_t index(string.GetSize() % 2), offset(index);
19  
20 <        _rmforeach (ext::Vector<byte_t>, byte, bytes) _rfor (byte_t, half, 0, 2) *byte |= hex(string[index++]) << half * 4;
20 >        _rforeach (ext::Vector<byte_t>, byte, bytes) _rfor (byte_t, half, 0, 2) *byte |= hex(string[index++]) << half * 4;
21  
22          if (offset != 0)
23          {
# Line 32 | Line 32 | Hexadecimal::operator ext::String() cons
32   {
33          ext::String string;
34  
35 <        _rforeach (ext::Vector<byte_t>, byte, bytes) _rfor (byte_t, half, 0, 2)
35 >        _rforeach (const ext::Vector<byte_t>, byte, bytes) _rfor (byte_t, half, 0, 2)
36          {
37                  byte_t hex(0xF & *byte >> half * 4);
38  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines