<b>true</b> when <i>s2</i> is a prefix for the string <i>s1</i>. Meaning, the characters at the beginning of <i>s1</i> are identical to <i>s2</i>; otherwise, <b>false</b>. <h3>Remarks</h3> This function performs a case-sensitive word search using the invariant culture. <h3>Examples</h3><ul class="examples"><li><pre class="code">string::starts-with('testing string', 'test') ==> true</pre></li><li><pre class="code">string::starts-with('testing string', 'testing') ==> true</pre></li><li><pre class="code">string::starts-with('testing string', 'string') ==> false</pre></li><li><pre class="code">string::starts-with('test', 'testing string') ==> false</pre></li></ul><h3>Requirements</h3><div style="margin-left: 20px;"><b>Assembly:</b> NAnt.Core (0.85.1932.0)
54
<b>true</b> when <i>s2</i> is a prefix for the string <i>s1</i>. Meaning, the characters at the beginning of <i>s1</i> are identical to <i>s2</i>; otherwise, <b>false</b>. <h3>Remarks</h3> This function performs a case-sensitive word search using the invariant culture. <h3>Examples</h3><ul class="examples"><li><pre class="code">string::starts-with('testing string', 'test') ==> true</pre></li><li><pre class="code">string::starts-with('testing string', 'testing') ==> true</pre></li><li><pre class="code">string::starts-with('testing string', 'string') ==> false</pre></li><li><pre class="code">string::starts-with('test', 'testing string') ==> false</pre></li></ul><h3>Requirements</h3><div style="margin-left: 20px;"><b>Assembly:</b> NAnt.Core (0.85.2344.0)