System.StrUtils.AnsiIndexText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiIndexText(const AText: string; const AValues: array of string): Integer;

C++

extern DELPHI_PACKAGE int __fastcall AnsiIndexText(const System::UnicodeString AText, const System::UnicodeString *AValues, const System::NativeInt AValues_High)/* overload */;

Properties

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

Description

Provides the index of a specified string in an array of strings.

AnsiIndexText returns the 0-offset index of the first string it finds in AValues that matches AText case-insensitively. If the string specified by AText does not have a (possibly case-insensitive) match in AValues, AnsiIndexText returns –1. Comparisons are based on the current system locale.

See Also