System.AnsiStrings.IndexStr

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.AnsiStrings.pas
System.AnsiStrings.hpp
System.AnsiStrings System.AnsiStrings

説明

文字列配列内の文字列を、大文字と小文字を区別して検索します。

IndexStr は、文字列の配列内で一致した文字列のインデックスを返します。文字列が見つからない場合、この関数は -1 を返します。

文字列の比較は、SameStr と同様に、大文字と小文字を区別して行われ、現在のユーザーのロケールによって制御されます。

大文字と小文字を区別しないで文字列を検索する場合は、IndexText を使用します。

この関数は、AnsiIndexStr と同じです。

関連項目