System.RegularExpressions.TMatchCollection

From RAD Studio API Documentation
Jump to: navigation, search

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() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.RegularExpressions.pas
System.RegularExpressions.hpp
System.RegularExpressions System.RegularExpressions

Description

Contains a set of TMatch instances, each the successful match of a regular expression to the input string.

TMatchCollection has no public constructor. It is created as the return value of the Matches method. The collection is populated with one TMatch instance for each match found in the input string. The Count property is the length of the TMatchCollection set.

See Also