llvm::tryGetHexFromNibbles

Store the binary representation of the two provided values, MSB and LSB, that make up the nibbles of a hexadecimal digit. If MSB or LSB do not correspond to proper nibbles of a hexadecimal digit, this method returns false. Otherwise, returns true.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

bool
tryGetHexFromNibbles(
    char MSB,
    char LSB,
    uint8_t& Hex);