Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 337:26218c4de7e0
test added
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 13 Jan 2013 22:06:31 +0100 |
parents | 3c291753231f |
children | cda6938a8c6f |
comparison
equal
deleted
inserted
replaced
336:3c291753231f | 337:26218c4de7e0 |
---|---|
592 assert(first <= last); | 592 assert(first <= last); |
593 return source.substr(first, last - first); | 593 return source.substr(first, last - first); |
594 } | 594 } |
595 | 595 |
596 | 596 |
597 static uint8_t Hex2Dec(char c) | 597 static char Hex2Dec(char c) |
598 { | 598 { |
599 return ((c >= '0' && c <= '9') ? c - '0' : | 599 return ((c >= '0' && c <= '9') ? c - '0' : |
600 ((c >= 'a' && c <= 'f') ? c - 'a' + 10 : c - 'A' + 10)); | 600 ((c >= 'a' && c <= 'f') ? c - 'a' + 10 : c - 'A' + 10)); |
601 } | 601 } |
602 | 602 |