Sign in Join
FPDoc Onlineexperiment

AnsiContainsText function

In unit StrUtils

Check whether a string contains a certain substring, ignoring case.

Declaration

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

Arguments

AText

The string to be searched.

ASubText

The substring to search for.

Function result

True if the substring was found, 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-insensitive.

See also

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