help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

AnsiIndexStr

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

Declaration

Source position: strutils.pp line 46

function AnsiIndexStr(

  const AText: String;

  const AValues: array of String

):Integer;

Arguments

AText

  

String to search for

AValues

  

Array of strings to search in.

Function result

Index of the matching element in the array, otherwise -1.

Description

AnsiIndexStr matches AText against each 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

AnsiIndexText

  

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

AnsiMatchStr

  

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505