llvm::utohexstr

Convert X to a hexadecimal string.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

std::string
utohexstr(
    uint64_t X,
    bool LowerCase = false,
    unsigned int Width = 0);

Return Value

The hexadecimal string representation of X.

Parameters

NameDescription
Xvalue to convert
LowerCaseuse lowercase hex digits when true
Widthminimum number of digits to emit (zero-padded)