padRight


Description:

public static string padRight (string? s, int len, char pad)

Pad the string on the right side to the specified length.

Example:

    assert (Strings.padRight ("hi", 5, '.') == "hi...");

Parameters:

s

the string to pad.

len

the desired total length.

pad

the padding character.

Returns:

padded string.