Skip to content

MatchText

Check if a string is in a list of values.

Declaration

Source position: strutils.pp line 50

function MatchText(const AText: Ansistring; 
                  const AValues: Array of Ansistring) : Boolean;
function MatchText(const AText: UnicodeString; 
                  const AValues: Array of UnicodeString = UnicodeString)
                   : Boolean;

Description

MatchText returns True if aText equals one of the strings in aValues. The comparison is done case insensitively. If you wish to compare case sensitively, use MatchStr instead.

See also

Name Description
MatchStr Check whether a string occurs in an array of strings, observing case.
AnsiMatchText Check whether a string occurs in an array of strings, disregarding case.
IndexText Index of text in a list of values.