RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ContainsStr Function

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

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

ContainsStr 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 ContainsText to make this test without case-sensitivity.  

This function is the same as AnsiContainsStr

 

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