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
Name |
Description |
Str |
String to center‐justify. |
Width |
Target field width in characters. |
Created with MrDocs