The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



IgnoreCase


Unit: SDL_stringl
Class: TGrep
Declaration: property IgnoreCase: boolean;

The property IgnoreCase determines if the search by MatchString is case sensitive. If IgnoreCase is set to TRUE the difference between lower and uppercase strings is ignored. IgnoreCase is FALSE by default.

Please note, that the internal representation of both the search string and the regular expression are converted to lowercase letters if IgnoreCase is set TRUE. Thus the array property RegExpToken returns lowercase tokens if IgnoreCase is set to TRUE. However, you may freely switch between "ignore" and "not ignore" without re-entering the regular expression, since the original regular expression is stored internally.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): grep



Last Update: 2023-Dec-13