RAD Studio VCL Reference
AnsiStrings.AnsiContainsText Function

Test if subtext is found in text without case-sensitivity.

function AnsiContainsText(const AText: AnsiString; const ASubText: AnsiString): Boolean; overload;
Boolean AnsiContainsText(const AnsiString AText, const AnsiString ASubText);

AnsiContainsText returns true if the subtext is found, without case-sensitivity, in the given text and returns false otherwise. It supports multi-byte character strings (MBCS) AnsiStrings.  

Use AnsiContainsStr to make this test with case-sensitivity. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!