Add some hex routines to utils.

This commit is contained in:
Arthur Britto
2012-04-29 12:58:23 -07:00
parent 5e97213bb1
commit 79470a297c
2 changed files with 29 additions and 0 deletions

View File

@@ -19,4 +19,9 @@ boost::posix_time::ptime ptFromSeconds(int iSeconds)
: ptEpoch() + boost::posix_time::seconds(iSeconds);
}
char charHex(int iDigit)
{
return iDigit < 10 ? '0' + iDigit : 'A' - 10 + iDigit;
}
// vim:ts=4