Signature
bool str_ends_with(String haystack, String needle)
Parameters
haystack : string to inspect
needle : suffix to compare against the end of
haystackreturn value :
true when haystack ends with needle, otherwise falseChecks whether haystack ends with needle.
Example
print(str_ends_with("index.uce", ".uce") ? "yes\n" : "no\n");
Output
yes