NAnt SDK Documentation - v0.92 |
|
StringFunctions.GetLength Method
Returns the length of the specified string.
[Visual Basic]
<Function(Name:="get-length")>
Public Shared Function GetLength( _
ByVal
s As
String _
) As
Integer
[C#]
[Function(Name="get-length")]
public static
int GetLength(
string s);
Parameters
-
s
- input string
Return Value
The string's length.
Example
string::get-length('foo') ==> 3
string::get-length('') ==> 0
See Also
StringFunctions Class | NAnt.Core.Functions Namespace