Tests whether the specified string starts with the specified prefix string.
true when s2 is a prefix for the string s1. Meaning, the characters at the beginning of s1 are identical to s2; otherwise, false.
This function performs a case-sensitive word search using the invariant culture.
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
StringFunctions Class | NAnt.Core.Functions Namespace