reSIProcate/stack  9694
Functions | Variables
Embedded.cxx File Reference
#include <cassert>
#include "resip/stack/Embedded.hxx"
#include "rutil/Data.hxx"
#include "resip/stack/Symbols.hxx"
#include "rutil/WinLeakCheck.hxx"
Include dependency graph for Embedded.cxx:

Go to the source code of this file.

Functions

char fromHex (char h1, char h2)

Variables

static char hexMap [] = "0123456789ABCDEF"

Function Documentation

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;
}

Variable Documentation

char hexMap[] = "0123456789ABCDEF" [static]

Definition at line 72 of file Embedded.cxx.

Referenced by resip::Embedded::encode().