Summary
Returns the given string trimmed of trailing whitespace.
Syntax
[Function("trim-end")]
public static string TrimEnd(string s)
Examples
string::trim-end(' test ') ==> ' test'
string::trim-end('\t\tfoo \r\n') ==> '\t\tfoo'
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 trailing
white space characters removed.
|