contains


Description:

public static bool contains (string? s, string? substr)

Returns whether substr is included in the string.

Example:

    assert (Strings.contains ("hello world", "world") == true);
assert (Strings.contains ("hello", "xyz") == false);

Parameters:

s

the string to be searched.

substr

search keyword.

Returns:

true if substr is included, false otherwise.