core :: Text :: has_suffix
suffix
?assert "abcd".has_suffix("abc") == false
assert "abcd".has_suffix("bcd") == true
# Is this string suffixed by `suffix`?
#
# ~~~
# assert "abcd".has_suffix("abc") == false
# assert "abcd".has_suffix("bcd") == true
# ~~~
fun has_suffix(suffix: String): Bool do return has_substring(suffix, length - suffix.length)
lib/core/text/abstract_text.nit:240,2--246,93