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.
Declared in <llvm/Support/Format.h>
FormattedString
center_justify(
StringRef Str,
unsigned int Width);
A formatted string that center-justifies Str to Width.
| Name | Description |
|---|---|
| Str | String to center-justify. |
| Width | Target field width in characters. |