GetDigitFromChar

UINT8 __stdcall GetDigitFromChar(WCHAR Ch, UINT8 *Digit){
  UINT8 v2; 

  if( (unsigned __int16)(Ch - 48) <= 9u )
  {
    v2 = Ch - 48;
LABEL_3:
    *Digit = v2;
    return 1;
  }
  if( (unsigned __int16)(Ch - 65) <= 5u )
  {
    v2 = Ch - 55;
    goto LABEL_3;
  }
  if( (unsigned __int16)(Ch - 97) <= 5u )
  {
    v2 = Ch - 87;
    goto LABEL_3;
  }
  if( Ch == 35 )
  {
    *Digit = 0;
    return 1;
  }
  return 0;
}

Referenced by:

GetOperandValue
LocalGetRelativeAttributeForString