System.AnsiStrings.AnsiContainsStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall AnsiContainsStr(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 with case-sensitivity.

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.

See Also