RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ContainsText Function

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

Pascal
function ContainsText(const AText: AnsiString; const ASubText: AnsiString): Boolean;
C++
Boolean ContainsText(const AnsiString AText, const AnsiString ASubText);

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

Use ContainsStr to make this test with case-sensitivity.  

ContainsText is the same as AnsiContainsText

 

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