endsWith


Description:

public static bool endsWith (string? s, string? suffix)

Returns whether the string ends with the specified suffix.

Example:

    assert (Strings.endsWith ("HelloWorld", "World") == true);
assert (Strings.endsWith ("HelloWorld", "Hello") == false);

Parameters:

s

the string to check.

suffix

the suffix.

Returns:

true if s ends with suffix.