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.
string
minimum field width
used to pad end up to width characters
GC allocated string
assert(rightJustify("hello", 7, 'X') == "XXhello"); assert(rightJustify("hello", 2, 'X') == "hello"); assert(rightJustify("hello", 9, 'X') == "XXXXhello");
rightJustifier, which does not allocate
See Implementation
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.