NAnt SDK Documentation - v0.92 |

# StringFunctions.TrimEnd Method

Returns the given string trimmed of trailing whitespace.

[Visual Basic]
<Function(Name:="trim-end")>
Public Shared Function TrimEnd( _
ByVal s As String _
) As String
[C#]
[Function(Name="trim-end")]
public static string TrimEnd(
string s
);

#### Parameters

s
  input string

#### Return Value

The string s with any trailing white space characters removed.

#### Example

    string::trim-end('  test  ') ==> '  test'

    string::trim-end('\t\tfoo  \r\n') ==> '\t\tfoo'

#### See Also

StringFunctions Class | NAnt.Core.Functions Namespace