Is Delphi's "Contains" register a string helper?
1 answer
Yes, it is case sensitive.
Quick test:
ShowMessage('TEST'.Contains('t').ToString(TUseBoolStrs.True));
returns False
Use ToLowerInvariant or ToUpperInvariant to compare case insensitively:
ShowMessage('TEST'.ToLowerInvariant.Contains('t').ToString(TUseBoolStrs.True));
+2
source to share