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