TPMERegexp Class Reference

#include <TPRegexp.h>

Inheritance diagram for TPMERegexp:

TPRegexp TPRegexp List of all members.

Public Member Functions

 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
void SetNMaxMatches (Int_t nm)
Int_t GetGlobalPosition () const
void AssignGlobalState (const TPMERegexp &re)
void ResetGlobalState ()
Int_t Match (const TString &s, UInt_t start=0)
Int_t Split (const TString &s, Int_t maxfields=0)
Int_t Substitute (TString &s, const TString &r, Bool_t doDollarSubst=kTRUE)
Int_t NMatches () const
TString operator[] (Int_t)
virtual void Print (Option_t *option="")
 ClassDef (TPMERegexp, 0)
 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
void SetNMaxMatches (Int_t nm)
Int_t GetGlobalPosition () const
void AssignGlobalState (const TPMERegexp &re)
void ResetGlobalState ()
Int_t Match (const TString &s, UInt_t start=0)
Int_t Split (const TString &s, Int_t maxfields=0)
Int_t Substitute (TString &s, const TString &r, Bool_t doDollarSubst=kTRUE)
Int_t NMatches () const
TString operator[] (Int_t)
virtual void Print (Option_t *option="")
 ClassDef (TPMERegexp, 0)

Protected Attributes

Int_t fNMaxMatches
Int_t fNMatches
TArrayI fMarkers
TString fLastStringMatched
void * fAddressOfLastString
Int_t fLastGlobalPosition
void * fAddressOfLastString

Private Member Functions

TPMERegexpoperator= (const TPMERegexp &)
TPMERegexpoperator= (const TPMERegexp &)

Detailed Description

Definition at line 96 of file TPRegexp.h.


Constructor & Destructor Documentation

TPMERegexp::TPMERegexp (  ) 

Definition at line 551 of file TPRegexp.cxx.

References TPRegexp::Compile().

TPMERegexp::TPMERegexp ( const TString s,
const TString opts = "",
Int_t  nMatchMax = 10 
)

Definition at line 564 of file TPRegexp.cxx.

References TPRegexp::Compile(), TPRegexp::fPCREOpts, opts, and TPRegexp::ParseMods().

TPMERegexp::TPMERegexp ( const TString s,
UInt_t  opts,
Int_t  nMatchMax = 10 
)

Definition at line 580 of file TPRegexp.cxx.

References TPRegexp::Compile(), and TPRegexp::fPCREOpts.

TPMERegexp::TPMERegexp ( const TPMERegexp r  ) 

Definition at line 596 of file TPRegexp.cxx.

References TPRegexp::Compile().

virtual TPMERegexp::~TPMERegexp (  )  [inline, virtual]

Definition at line 117 of file TPRegexp.h.

TPMERegexp::TPMERegexp (  ) 

TPMERegexp::TPMERegexp ( const TString s,
const TString opts = "",
Int_t  nMatchMax = 10 
)

TPMERegexp::TPMERegexp ( const TString s,
UInt_t  opts,
Int_t  nMatchMax = 10 
)

TPMERegexp::TPMERegexp ( const TPMERegexp r  ) 

virtual TPMERegexp::~TPMERegexp (  )  [inline, virtual]

Definition at line 117 of file TPRegexp.h.


Member Function Documentation

TPMERegexp& TPMERegexp::operator= ( const TPMERegexp  )  [private]

void TPMERegexp::Reset ( const TString s,
const TString opts = "",
Int_t  nMatchMax = -1 
)

Definition at line 611 of file TPRegexp.cxx.

References opts, TPRegexp::ParseMods(), and s.

void TPMERegexp::Reset ( const TString s,
UInt_t  opts,
Int_t  nMatchMax = -1 
)

Definition at line 620 of file TPRegexp.cxx.

References TPRegexp::Compile(), fLastGlobalPosition, fNMatches, TPRegexp::fPattern, TPRegexp::fPCREOpts, and s.

Int_t TPMERegexp::GetNMaxMatches (  )  const [inline]

Definition at line 122 of file TPRegexp.h.

References fNMaxMatches.

void TPMERegexp::SetNMaxMatches ( Int_t  nm  )  [inline]

Definition at line 123 of file TPRegexp.h.

References fNMaxMatches.

Int_t TPMERegexp::GetGlobalPosition (  )  const [inline]

Definition at line 125 of file TPRegexp.h.

References fLastGlobalPosition.

void TPMERegexp::AssignGlobalState ( const TPMERegexp re  ) 

Definition at line 636 of file TPRegexp.cxx.

References fLastGlobalPosition, and fLastStringMatched.

void TPMERegexp::ResetGlobalState (  ) 

Definition at line 652 of file TPRegexp.cxx.

References fLastGlobalPosition.

Int_t TPMERegexp::Match ( const TString s,
UInt_t  start = 0 
)

Definition at line 663 of file TPRegexp.cxx.

References fAddressOfLastString, fLastGlobalPosition, fLastStringMatched, fMarkers, fNMatches, fNMaxMatches, TPRegexp::fPCREOpts, TPRegexp::kPCRE_GLOBAL, TPRegexp::MatchInternal(), PCRE_ERROR_NOMATCH, and s.

Referenced by TDocOutput::Convert(), THtml::CreateListOfClasses(), TDocParser::LocateMethods(), regexp_pme(), TEveManager::SaveVizDB(), Split(), TEveMacro::TEveMacro(), and TVSDReader::TVSDReader().

Int_t TPMERegexp::Split ( const TString s,
Int_t  maxfields = 0 
)

Definition at line 706 of file TPRegexp.cxx.

References fMarkers, fNMatches, i, Match(), s, and TArrayI::Set().

Referenced by regexp_pme().

Int_t TPMERegexp::Substitute ( TString s,
const TString r,
Bool_t  doDollarSubst = kTRUE 
)

Definition at line 825 of file TPRegexp.cxx.

References c, xmlio::cnt, data, Error, fNMaxMatches, len, s, and TPRegexp::SubstituteInternal().

Referenced by ClassImpQ(), TGLAxisPainter::FormAxisValue(), regexp_pme(), and TEveManager::TEveManager().

Int_t TPMERegexp::NMatches (  )  const [inline]

Definition at line 133 of file TPRegexp.h.

References fNMatches.

TString TPMERegexp::operator[] ( Int_t   ) 

Definition at line 878 of file TPRegexp.cxx.

References fLastStringMatched, fMarkers, and fNMatches.

void TPMERegexp::Print ( Option_t option = ""  )  [virtual]

Definition at line 892 of file TPRegexp.cxx.

References TString::Contains(), TString::Data(), fLastStringMatched, fNMatches, TPRegexp::fPattern, TPRegexp::GetModifiers(), i, Printf(), and TString::ToLower().

Referenced by regexp_pme().

TPMERegexp::ClassDef ( TPMERegexp  ,
 
)

TPMERegexp& TPMERegexp::operator= ( const TPMERegexp  )  [private]

void TPMERegexp::Reset ( const TString s,
const TString opts = "",
Int_t  nMatchMax = -1 
)

void TPMERegexp::Reset ( const TString s,
UInt_t  opts,
Int_t  nMatchMax = -1 
)

Int_t TPMERegexp::GetNMaxMatches (  )  const [inline]

Definition at line 122 of file TPRegexp.h.

References fNMaxMatches.

void TPMERegexp::SetNMaxMatches ( Int_t  nm  )  [inline]

Definition at line 123 of file TPRegexp.h.

References fNMaxMatches.

Int_t TPMERegexp::GetGlobalPosition (  )  const [inline]

Definition at line 125 of file TPRegexp.h.

References fLastGlobalPosition.

void TPMERegexp::AssignGlobalState ( const TPMERegexp re  ) 

void TPMERegexp::ResetGlobalState (  ) 

Int_t TPMERegexp::Match ( const TString s,
UInt_t  start = 0 
)

Int_t TPMERegexp::Split ( const TString s,
Int_t  maxfields = 0 
)

Int_t TPMERegexp::Substitute ( TString s,
const TString r,
Bool_t  doDollarSubst = kTRUE 
)

Int_t TPMERegexp::NMatches (  )  const [inline]

Definition at line 133 of file TPRegexp.h.

References fNMatches.

TString TPMERegexp::operator[] ( Int_t   ) 

virtual void TPMERegexp::Print ( Option_t option = ""  )  [virtual]

TPMERegexp::ClassDef ( TPMERegexp  ,
 
)


Member Data Documentation

Int_t TPMERegexp::fNMaxMatches [protected]

Definition at line 102 of file TPRegexp.h.

Referenced by GetNMaxMatches(), Match(), SetNMaxMatches(), and Substitute().

Int_t TPMERegexp::fNMatches [protected]

Definition at line 103 of file TPRegexp.h.

Referenced by Match(), NMatches(), operator[](), Print(), Reset(), and Split().

TArrayI TPMERegexp::fMarkers [protected]

Definition at line 104 of file TPRegexp.h.

Referenced by Match(), operator[](), and Split().

TString TPMERegexp::fLastStringMatched [protected]

Definition at line 106 of file TPRegexp.h.

Referenced by AssignGlobalState(), Match(), operator[](), and Print().

void* TPMERegexp::fAddressOfLastString [protected]

Definition at line 107 of file TPRegexp.h.

Referenced by Match().

Int_t TPMERegexp::fLastGlobalPosition [protected]

Definition at line 109 of file TPRegexp.h.

Referenced by AssignGlobalState(), GetGlobalPosition(), Match(), Reset(), and ResetGlobalState().

void* TPMERegexp::fAddressOfLastString [protected]

Definition at line 107 of file TPRegexp.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:44:57 2011 for ROOT_528-00b_version by  doxygen 1.5.1