A++ » INCLUDE » TPRegexp

class 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~TPRegexp()
static TClass*Class()
TStringGetModifiers() const
TStringGetPattern() const
static Bool_tGetThrowAtCompileError()
virtual TClass*IsA() const
Bool_tIsValid() const
Int_tMatch(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10, TArrayI* pos = 0)
Bool_tMatchB(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10)
TObjArray*MatchS(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10)
TPRegexp&operator=(const TPRegexp& p)
static voidSetThrowAtCompileError(Bool_t throwp)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
Int_tSubstitute(TString& s, const TString& replace, const TString& mods = "", Int_t start = 0, Int_t nMatchMax = 10)
TPRegexp()
TPRegexp(const TString& pat)
TPRegexp(const TPRegexp& p)
protected:
voidCompile()
Int_tMatchInternal(const TString& s, Int_t start, Int_t nMaxMatch, TArrayI* pos = 0) const
voidOptimize()
UInt_tParseMods(const TString& mods) const
Int_tReplaceSubs(const TString& s, TString& final, const TString& replacePattern, Int_t* ovec, Int_t nmatch) const
Int_tSubstituteInternal(TString& s, const TString& replace, Int_t start, Int_t nMaxMatch0, Bool_t doDollarSubst) const

Data Members

protected:
UInt_tfPCREOpts
TStringfPattern
PCREPriv_t*fPriv
static Bool_tfgThrowAtCompileError
static TPRegexp::(anonymous)kPCRE_DEBUG_MSGS
static TPRegexp::(anonymous)kPCRE_GLOBAL
static TPRegexp::(anonymous)kPCRE_INTMASK
static TPRegexp::(anonymous)kPCRE_OPTIMIZE

Class Charts

Inheritance Chart:
TPRegexp
TPMERegexp

Function documentation

void Compile()
void Optimize()
UInt_t ParseMods(const TString& mods) const
Int_t ReplaceSubs(const TString& s, TString& final, const TString& replacePattern, Int_t* ovec, Int_t nmatch) const
Int_t SubstituteInternal(TString& s, const TString& replace, Int_t start, Int_t nMaxMatch0, Bool_t doDollarSubst) const
TPRegexp(const TString& pat)
TPRegexp(const TPRegexp& p)
virtual ~TPRegexp()
Bool_t IsValid() const
Int_t Match(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10, TArrayI* pos = 0)
Bool_t MatchB(const TString& s, const TString& mods = "", Int_t start = 0, Int_t nMaxMatch = 10)
Int_t Substitute(TString& s, const TString& replace, const TString& mods = "", Int_t start = 0, Int_t nMatchMax = 10)
{ return fPattern; }
TString GetModifiers() const
TPRegexp & operator=(const TPRegexp& p)
Bool_t GetThrowAtCompileError()
void SetThrowAtCompileError(Bool_t throwp)