NAnt
![]() ![]() ![]() |
v0.85 |
[This is preliminary documentation and subject to change.]
Tests whether the specified string ends with the specified suffix string.
string::ends-with(s1, s2)
Name | Type | Description |
---|---|---|
s1 | string | test string |
s2 | string | suffix string |
string::ends-with('testing string', 'string') ==> true
string::ends-with('testing string', '') ==> true
string::ends-with('testing string', 'bring') ==> false
string::ends-with('string', 'testing string') ==> false