|
reSIProcate/stack
9694
|
#include <cassert>#include "resip/stack/Embedded.hxx"#include "rutil/Data.hxx"#include "resip/stack/Symbols.hxx"#include "rutil/WinLeakCheck.hxx"
Go to the source code of this file.
Functions | |
| char | fromHex (char h1, char h2) |
Variables | |
| static char | hexMap [] = "0123456789ABCDEF" |
| char fromHex | ( | char | h1, |
| char | h2 | ||
| ) |
Definition at line 15 of file Embedded.cxx.
Referenced by resip::Embedded::decode().
{
h1 = toupper(h1);
h2 = toupper(h2);
int i1;
int i2;
if (isdigit(h1))
{
i1 = h1 - '0';
}
else
{
i1 = h1 - 'A' + 10;
}
if (isdigit(h2))
{
i2 = h2 - '0';
}
else
{
i2 = h2 - 'A' + 10;
}
return i1*16+i2;
}
char hexMap[] = "0123456789ABCDEF" [static] |
Definition at line 72 of file Embedded.cxx.
Referenced by resip::Embedded::encode().
1.7.5.1