NAnt SDK Documentation - v0.92

StringFunctions Members

StringFunctions overview

Public Static (Shared) Methods

Contains Tests whether the specified string contains the given search string.
EndsWith Tests whether the specified string ends with the specified suffix string.
GetLength Returns the length of the specified string.
IndexOf Returns the position of the first occurrence in the specified string of the given search string.
LastIndexOf Returns the position of the last occurrence in the specified string of the given search string.
PadLeft Returns the given string left-padded to the given length.
PadRight Returns the given string right-padded to the given length.
Replace Returns a string corresponding to the replacement of a given string with another in the specified string.
StartsWith Tests whether the specified string starts with the specified prefix string.
Substring Returns a substring of the specified string.
ToLower Returns the specified string converted to lowercase.
ToUpper Returns the specified string converted to uppercase.
Trim Returns the given string trimmed of whitespace.
TrimEnd Returns the given string trimmed of trailing whitespace.
TrimStart Returns the given string trimmed of leading whitespace.

Public Instance Constructors

StringFunctions Constructor

Public Instance Properties

Project (inherited from FunctionSetBase) Gets or sets the Project that this functionset will reference.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type.
GetType (inherited from Object) Gets the Type of the current instance.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

StringFunctions Class | NAnt.Core.Functions Namespace