System.AnsiStrings.ContainsText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall ContainsText(const System::AnsiString AText, const System::AnsiString ASubText)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

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

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.

See Also