System.RegularExpressions.TMatchCollection
Delphi
TMatchCollection = record
C++
struct DECLSPEC_DRECORD TMatchCollection
{
public:
TMatch operator[](int Index) { return this->Item[Index]; }
private:
System::DynamicArray<TMatch> FList;
protected:
__fastcall TMatchCollection(const System::_di_IInterface ANotifier, const System::UnicodeString Input, TRegExOptions AOptions, int StartPos);
private:
int __fastcall GetCount();
TMatch __fastcall GetItem(int Index);
public:
TMatchCollectionEnumerator* __fastcall GetEnumerator();
System::DynamicArray<TMatch>::iterator begin() {return FList.begin();}
System::DynamicArray<TMatch>::iterator end() {return FList.end();}
__property int Count = {read=GetCount};
__property TMatch Item[int Index] = {read=GetItem};
TMatchCollection() {}
};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
record struct |
public | System.RegularExpressions.pas System.RegularExpressions.hpp |
System.RegularExpressions | System.RegularExpressions |
説明
入力文字列に対する正規表現の一致結果を表す、TMatch インスタンスの集合が含まれています。
TMatchCollection にはパブリックなコンストラクタがありません。 このクラスのインスタンスは、Matches メソッドの戻り値として作成されます。 このコレクションには、入力文字列で見つかった一致結果ごとに 1 つの TMatch インスタンスが追加されています。 Count プロパティは、TMatchCollection セットの長さです。