llvm::center_justify

center_justify - add spaces before and after string so total output is Width characters. If Str is larger that Width, full string is written with no padding.

Synopsis

Declared in <llvm/Support/Format.h>

FormattedString
center_justify(
    StringRef Str,
    unsigned int Width);

Return Value

A formatted string that center-justifies Str to Width.

Parameters

NameDescription
StrString to center-justify.
WidthTarget field width in characters.