string::last-index-of

[This is preliminary documentation and subject to change.]

Returns the position of the last occurrence in the specified string of the given search string.

Usage

int string::last-index-of(source, value)

Parameters

Name Type Description
source string The string to search.
value string The string to locate within source.

Return Value

The highest-index position of value in source if it is found, or -1 if source does not contain value.

If value is an empty string, the return value is the last index position in source.

Remarks

This function performs a case-sensitive word search using the invariant culture.

Examples

Requirements

Assembly: NAnt.Core (0.91.4298.0)