Summary
Returns the given string trimmed of leading whitespace.
Syntax
[Function("trim-start")]
public static string TrimStart(string s)
Examples
string::trim-start(' test ') ==> 'test '
string::trim-start('\t\tfoo \r\n') ==> 'foo \r\n'
Attributes
Type |
Description |
FunctionAttribute |
Indicates that the method should be exposed as a function in NAnt build
files.
|
Parameters
Name |
Type |
Description |
s |
string |
input string |
Return Value
Type |
Description |
string |
The string s with any leading
whites pace characters removed.
|