[Overview][Constants][Types][Procedures and functions] Reference for unit 'strutils' (#rtl)

AnsiContainsText

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

Declaration

Source position: strutils.pp line 30

function AnsiContainsText(

  const AText: String;

  const ASubText: String

):Boolean;

Arguments

AText

  

The string to be searched

ASubText

  

The substring to search for

Function result

Trueif the substring was found, Falseotherwise.

Description

AnsiContainsStringchecks whether ATextcontains ASubText, and returns Trueif this is the case, or returns Falseotherwise. The search is performed case-insensitive.

See also

AnsiContainsStr

  

Checks whether a string contains a given substring

AnsiEndsText

  

Check whether a string ends with a certain substring, ignoring case.

AnsiIndexText

  

Searches, case insensitive, for a string in an array of strings.

AnsiStartsText

  

Check whether a string starts with a given substring, ignoring case