trimRight


Description:

public static string trimRight (string? s, string cutset)

Remove the specified characters from the right side of the string.

Example:

    assert (Strings.trimRight ("helloxyy", "xy") == "hello");

Parameters:

s

the string to trim.

cutset

characters to remove from the right.

Returns:

trimmed string.