Sign in Join
FPDoc Onlineexperiment

AnsiContainsStr function

In unit StrUtils

Checks whether a string contains a given substring.

Declaration

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

Arguments

AText

String to search in.

ASubText

The substring to be searched for.

Function result

True if the string contains the given substring, False otherwise.

Description

AnsiContainsString checks whether AText contains ASubText, and returns True if this is the case, or returns False otherwise. The search is performed case-sensitive.

Errors

None

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.