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

AnsiMatchStr

Check whether a string occurs in an array of strings, observing case.

Declaration

Source position: strutils.pp line 45

function AnsiMatchStr(

  const AText: String;

  const AValues: array [] of String

):Boolean;

Arguments

AText

  

String to check for

AValues

  

Array of string values to search in

Function result

Trueif the value appears in the array, Falseif not.

Description

AnsiIndexStrmatches ATextagainst each string in AValues. If a match is found, it returns True, otherwise Falseis returned. The strings are matched observing case.

This function simply calls AnsiIndexStrad checks whether it returns -1 or not.