Left 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(leftJustify("hello", 7, 'X') == "helloXX"); assert(leftJustify("hello", 2, 'X') == "hello"); assert(leftJustify("hello", 9, 'X') == "helloXXXX");
leftJustifier, which does not allocate
See Implementation
Left 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.