STD.Str.Contains( src, _pattern, ignore_case )
STD.Uni.Contains( src, _pattern, _noCase )
| src | A string containing the data to search. |
| _pattern | A string containing the characters to compare. An empty string ( '' ) always returns true. |
| ignore_case / _noCase | A boolean true or false indicating whether to ignore the case. |
| Return: | Contains returns a BOOLEAN value. |
The Contains functions return true if all the characters in the pattern appear in the source, otherwise they return false.
Example:
A := STD.Str.Contains( 'the quick brown fox jumps over the lazy dog', 'ABCdefghijklmnopqrstuvwxyz', true); //returns TRUE B:= STD.Str.Contains( 'the speedy ochre vixen leapt over the indolent retriever', 'abcdefghijklmnopqrstuvwxyz', false); //returns FALSE -- 'z' is missing
See Also: Find