64 Bool_t doDollarSubst)
const;
80 return (
Match(s,mods,start,nMaxMatch) > 0); }
128 void ResetGlobalState();
Int_t SubstituteInternal(TString &s, const TString &replace, Int_t start, Int_t nMaxMatch0, Bool_t doDollarSubst) const
Perform pattern substitution with optional back-ref replacement.
TString fLastStringMatched
#define Split(a, ahi, alo)
Int_t GetGlobalPosition() const
Int_t MatchInternal(const TString &s, Int_t start, Int_t nMaxMatch, TArrayI *pos=0) const
Perform the actual matching - protected method.
Bool_t MatchB(const TString &s, const TString &mods="", Int_t start=0, Int_t nMaxMatch=10)
Int_t ReplaceSubs(const TString &s, TString &final, const TString &replacePattern, Int_t *ovec, Int_t nmatch) const
Returns the number of expanded '$' constructs.
TObjArray * MatchS(const TString &s, const TString &mods="", Int_t start=0, Int_t nMaxMatch=10)
Returns a TObjArray of matched substrings as TObjString's.
static void SetThrowAtCompileError(Bool_t throwp)
Set static flag controlling whether exception should be thrown upon an error during regular expressio...
virtual ~TPRegexp()
Cleanup.
TString GetModifiers() const
Return PCRE modifier options as string.
Int_t Substitute(TString &s, const TString &replace, const TString &mods="", Int_t start=0, Int_t nMatchMax=10)
Substitute replaces the string s by a new string in which matching patterns are replaced by the repla...
Array of integers (32 bits per element).
#define ClassDef(name, id)
Provides iteration through tokens of a given string.
void Compile()
Compile the fPattern.
Bool_t IsValid() const
Returns true if underlying PCRE structure has been successfully generated via regexp compilation...
void SetNMaxMatches(Int_t nm)
void * fAddressOfLastString
TPRegexp & operator=(const TPRegexp &p)
Assignment operator.
void Reset(Detail::TBranchProxy *x)
static constexpr double nm
void Print(std::ostream &os, const OptionType &opt)
static constexpr double s
static Bool_t fgThrowAtCompileError
UInt_t ParseMods(const TString &mods) const
Translate Perl modifier flags into pcre flags.
static Bool_t GetThrowAtCompileError()
Get value of static flag controlling whether exception should be thrown upon an error during regular ...
Wrapper for PCRE library (Perl Compatible Regular Expressions).
Int_t fLastGlobalPosition
Int_t GetNMaxMatches() const
Int_t Match(const TString &s, const TString &mods="", Int_t start=0, Int_t nMaxMatch=10, TArrayI *pos=0)
The number of matches is returned, this equals the full match + sub-pattern matches.
TString GetPattern() const
void Optimize()
Send the pattern through the optimizer.