/* Convert an ASCII char representing an hexadecimal number to its integer value. */
UINT8 EFIAPI HexFromAscii(IN CHAR8 Char)
/* Convert an ASCII char representing an hexadecimal number to its integer value. */
UINT8 EFIAPI HexFromAscii(IN CHAR8 Char)
{
  if ((Char >= '0') && (Char <= '9')) {
    return (UINT8)(Char - '0');
  }
  if ((Char >= 'A') && (Char <= 'F')) {
    return (UINT8)(Char - 'A' + 10);
  }
  if ((Char >= 'a') && (Char <= 'f')) {
    return (UINT8)(Char - 'a' + 10);
  }
  ASSERT (FALSE);
  return (UINT8)-1;
}