padLeft


Description:

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

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

Example:

    assert (Strings.padLeft ("42", 5, '0') == "00042");

Parameters:

s

the string to pad.

len

the desired total length.

pad

the padding character.

Returns:

padded string.