Sign in Join
FPDoc Onlineexperiment

IndexStr function

In unit StrUtils

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

Declaration

pascal
function IndexStr(const AText: UnicodeString; 
 const AValues: Array of UnicodeString = UnicodeString)
: Integer

Description

IndexStr matches AText against each Unicode string in AValues. If a match is found, the corresponding index (zero-based) in the AValues array is returned. If no match is found, -1 is returned. The strings are matched observing case.

Errors

None.

See also

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