System.RegularExpressions.TMatchCollection

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

TMatchCollection = record

C++

struct DECLSPEC_DRECORD TMatchCollection
{
public:
    TMatch operator[](int Index) { return this->Item[Index]; }
private:
#ifndef _WIN64
    System::DynamicArray<TMatch> FList;
#else /* _WIN64 */
    System::TArray__1<TMatch> FList;
#endif /* _WIN64 */
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();
    __property int Count = {read=GetCount};
    __property TMatch Item[int Index] = {read=GetItem};
    TMatchCollection() {}
};

Propriétés

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

Description

Contient un ensemble d'instances de TMatch, chacune étant la correspondance réussie d'une expression régulière sur la chaîne d'entrée.

TMatchCollection n'a pas de constructeur public. Il est créé en tant que valeur de retour de la méthode Matches. La collection est remplie par une instance de TMatch pour chaque correspondance trouvée dans la chaîne d'entrée. La propriété Count est la longueur de l'ensemble TMatchCollection.

Voir aussi