Sign in Join
FPDoc Onlineexperiment

AnsiMatchStr function

In unit StrUtils

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

Declaration

pascal
function AnsiMatchStr(const AText: AnsiString; 
 const AValues: Array of AnsiString): Boolean

Arguments

AText

String to check for.

AValues

Array of string values to search in.

Function result

True if the value appears in the array, False if not.

Description

AnsiMatchStr matches AText against each string in AValues. If a match is found, it returns True, otherwise False is returned. The strings are matched observing case.

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

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