rightJustify
fn
S 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
s | string |
width | minimum field width |
fillChar | used to pad end up to width characters |
Returns
GC allocated string
See Also
rightJustifier, which does not allocate