System.AnsiStrings.AnsiIndexStr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiIndexStr(const AText: AnsiString; const AValues: array of AnsiString): Integer;

C++

extern DELPHI_PACKAGE int __fastcall AnsiIndexStr(const System::AnsiString AText, const System::AnsiString *AValues, const int AValues_High)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

Description

Look for string in string array with case-sensitivity.

AnsiIndexStr returns the index of a matching string in an array of strings. If the string is not found, the function returns -1.

The string comparison is made with case-sensitivity and is controlled by the current user locale, as for AnsiSameStr.

Use AnsiIndexText to search strings without case-sensitivity.

See Also