string.hasSuffix
| Syntax |
string.hasSuffix (suffix, string)
|
| Params |
suffix is a string containing the characters making up the suffix in which you are interested. string is the string in which you are searching for the presence of suffix.
|
| Action |
Determines whether the last characters of string are the characters contained in suffix.
|
| Returns |
True if string ends in suffix; false otherwise.
|
| Examples |
string.hasSuffix (".text", "biography.text") » true
string.hasSuffix (".data", "biography.text")
string.hasSuffix ("text", "biography.text")
string.hasSuffix ("text", "biographytext")
|
| Notes |
It is not necessary that the suffix be preceded in string by a period or any other special character.
|
| See Also |
endsWith
|