rightJustify

fnS rightJustify(S)(S s, size_t width, dchar fillChar = ' ') if (isSomeString!S)

Right justify s in a field width characters wide. fillChar is the character that will be used to fill up the space in the field that s doesn't fill.

Parameters

sstring
widthminimum field width
fillCharused to pad end up to width characters

Returns

GC allocated string

See Also

rightJustifier, which does not allocate