Show: Delphi C++
Display Preferences

System.AnsiStrings.ContainsStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE bool __fastcall ContainsStr(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.

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.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance