A++ » INCLUDE » TPMERegexp

class TPMERegexp: protected TPRegexp


TPRegexp

C++ Wrapper for the "Perl Compatible Regular Expressions" library
The PCRE lib can be found at:
http://www.pcre.org/

Extensive documentation about Regular expressions in Perl can be
found at :
http://perldoc.perl.org/perlre.html


Function Members (Methods)

public:
virtual~TPMERegexp()
voidAssignGlobalState(const TPMERegexp& re)
static TClass*Class()
Int_tGetGlobalPosition() const
Int_tGetNMaxMatches() const
virtual TClass*IsA() const
Int_tMatch(const TString& s, UInt_t start = 0)
Int_tNMatches() const
TStringoperator[](Int_t)
virtual voidPrint(Option_t* option = "")
voidReset(const TString& s, const TString& opts = "", Int_t nMatchMax = -1)
voidReset(const TString& s, UInt_t opts, Int_t nMatchMax = -1)
voidResetGlobalState()
voidSetNMaxMatches(Int_t nm)
virtual voidShowMembers(TMemberInspector& insp) const
Int_tSplit(const TString& s, Int_t maxfields = 0)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Int_tSubstitute(TString& s, const TString& r, Bool_t doDollarSubst = kTRUE)
TPMERegexp()
TPMERegexp(const TPMERegexp& r)
TPMERegexp(const TString& s, const TString& opts = "", Int_t nMatchMax = 10)
TPMERegexp(const TString& s, UInt_t opts, Int_t nMatchMax = 10)
protected:
voidTPRegexp::Compile()
TStringTPRegexp::GetModifiers() const
TStringTPRegexp::GetPattern() const
static Bool_tTPRegexp::GetThrowAtCompileError()
Bool_tTPRegexp::IsValid() const
Bool_tTPRegexp::MatchB(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10)
Int_tTPRegexp::MatchInternal(const TString& s, Int_t start, Int_t nMaxMatch, TArrayI* pos = 0) const
TObjArray*TPRegexp::MatchS(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10)
voidTPRegexp::Optimize()
UInt_tTPRegexp::ParseMods(const TString& mods) const
Int_tTPRegexp::ReplaceSubs(const TString& s, TString& final, const TString& replacePattern, Int_t* ovec, Int_t nmatch) const
static voidTPRegexp::SetThrowAtCompileError(Bool_t throwp)
Int_tTPRegexp::SubstituteInternal(TString& s, const TString& replace, Int_t start, Int_t nMaxMatch0, Bool_t doDollarSubst) const
private:
TPMERegexp&operator=(const TPMERegexp&)

Data Members

protected:
void*fAddressOfLastStringused for checking for change of TString in global match
Int_tfLastGlobalPositionend of last match when kPCRE_GLOBAL is set
TStringfLastStringMatchedcopy of the last TString matched
TArrayIfMarkerslast set of indexes of matches
Int_tfNMatchesnumber of matches returned from last pcre_exec call
Int_tfNMaxMatchesmaximum number of matches
UInt_tTPRegexp::fPCREOpts
TStringTPRegexp::fPattern
PCREPriv_t*TPRegexp::fPriv
static Bool_tTPRegexp::fgThrowAtCompileError
static TPRegexp::(anonymous)TPRegexp::kPCRE_DEBUG_MSGS
static TPRegexp::(anonymous)TPRegexp::kPCRE_GLOBAL
static TPRegexp::(anonymous)TPRegexp::kPCRE_INTMASK
static TPRegexp::(anonymous)TPRegexp::kPCRE_OPTIMIZE

Class Charts

Inheritance Chart:
TPRegexp
TPMERegexp

Function documentation

Int_t Match(const TString &s, const TString &mods="", Int_t start=0, Int_t nMaxMatch=10, TArrayI *pos=0)
Int_t Substitute(TString &s, const TString &replace, const TString &mods="", Int_t start=0, Int_t nMatchMax=10)
{ return fPattern; }
TPRegexp & operator=(const TPMERegexp& )
TPMERegexp()
TPMERegexp(const TString& s, const TString& opts = "", Int_t nMatchMax = 10)
TPMERegexp(const TString& s, UInt_t opts, Int_t nMatchMax = 10)
TPMERegexp(const TPMERegexp& r)
virtual ~TPMERegexp()
{}
void Reset(const TString& s, const TString& opts = "", Int_t nMatchMax = -1)
void Reset(const TString& s, UInt_t opts, Int_t nMatchMax = -1)
Int_t GetNMaxMatches() const
{ return fNMaxMatches; }
void SetNMaxMatches(Int_t nm)
{ fNMaxMatches = nm; }
Int_t GetGlobalPosition() const
void AssignGlobalState(const TPMERegexp& re)
void ResetGlobalState()
Int_t Split(const TString& s, Int_t maxfields = 0)
Int_t NMatches() const
{ return fNMatches; }
TString operator[](Int_t )
void Print(Option_t* option = "")