RAD Studio VCL Reference
AnsiStrings.AnsiContainsStr Function

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

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

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

Use AnsiContainsText to make this test without case-sensitivity. 


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