| NAnt  Help  Function Reference  string::substring | v0.92-rc1 | 
[This is preliminary documentation and subject to change.]
Returns a substring of the specified string.
string string::substring(str, startIndex, length)
            
    
    | Name | Type | Description | 
|---|---|---|
| str | string | input string | 
| startIndex | int | position of the start of the substring | 
| length | int | the length of the substring | 
If the length is greater than zero, the function returns a substring starting at character position startIndex with a length of length characters.
If the length is equal to zero, the function returns an empty string.
string::substring('testing string', 0, 4) ==> 'test'string::substring('testing string', 8, 3) ==> 'str'string::substring('testing string', 8, 0) ==> ''string::substring('testing string', -1, 5) ==> ERRORstring::substring('testing string', 8, -1) ==> ERRORstring::substring('testing string', 5, 17) ==> ERROR