STD.Str.Contains( source, pattern, nocase )
STD.Uni.Contains( source, pattern, nocase )
source | A string containing the data to search. |
pattern | A string containing the characters to compare. An empty string ( '' ) always returns true. |
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