string::contains

[This is preliminary documentation and subject to change.]

Tests whether the specified string contains the given search string.

Usage

string::contains(str, substr)

Parameters

Name Type Description
str string input string
substr string search string

Return Value

true if substr is found in str; otherwise, false.

Remarks

This function performs a word (case-sensitive and culture-sensitive) search using the current culture.

Examples

Requirements

Assembly: NAnt.Core (0.85.1698.0)