- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function substr_iexists(const str, sub: string): boolean;
Arguments:
-
str |
Source string for search |
sub |
Substring to search for |
Description:
-
Tells whether haystack str contains needle sub. In difference from substr_exists this function is case insensitive.
Returns:
-
TRUE on positive search result, FALSE on negative.
Usage:
-
s := 'Does this haystack contain any NeedLes?';
if substr_iexists(s, 'needle') then
writeln('Needle exists')
else
writeln('Needle does not exist');
See also:
-
substr_exists, substr_count, substr_pos.
|