StringFunctions.

TrimStart(string) Method

Summary

Returns the given string trimmed of leading whitespace.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
StringFunctions

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.