System.StrUtils.IndexStr
Delphi
function IndexStr(const AText: string; const AValues: array of string): Integer;
C++
extern DELPHI_PACKAGE int __fastcall IndexStr(const System::UnicodeString AText, const System::UnicodeString *AValues, const int AValues_High)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
説明
IndexStr は、配列 AValues 内の任意の文字列が AText で指定された文字列と一致するかどうかを判断します。その際、大文字小文字を区別して比較します。配列内で最初に一致した要素のインデックス(0から始まる)が返ります。一致する要素が見つからなかった場合は -1 が返ります。
大文字小文字を区別しないで比較する場合は、IndexText ルーチンを使用します。