ΒΆinline llvm::FormattedNumber format_hex(
uint64_t N,
unsigned int Width,
bool Upper = false)
inline llvm::FormattedNumber format_hex(
uint64_t N,
unsigned int Width,
bool Upper = false)
Description
format_hex - Output \p N as a fixed width hexadecimal. If number will not fit in width, full number is still printed. Examples: OS < < format_hex(255, 4) => 0xff OS < < format_hex(255, 4, true) => 0xFF OS < < format_hex(255, 6) => 0x00ff OS < < format_hex(255, 2) => 0xff
Declared at: llvm/include/llvm/Support/Format.h:186
Parameters
- uint64_t N
- unsigned int Width
- bool Upper = false