From Matevz:
TPRegexp ======== 1. Modularized Match() and Substitute() functions so that the low-level work is done by MatchInternal() and SubstituteInternal(). 2. Added function TString GetModifiers() that translates from bit-flag options back to perl-style option characters. 3. For all functions that do actual matching replaced the default value of 'Int_t nMatchMax' argument from 30 to 10. PCRE internals require the index buffer to be 3-times the number of allowed matches. This multiplication is now performed in individual functions and nMatchMax is really the number of allowed matches. Two function calls in TString passing this number explicitly have been updated. TPMERegexp ========== New sub-class of TPRegexp with API closer to PERL. Supports main Perl operations using regular expressions (Match, Substitute and Split). To retrieve the results one can simply use operator[] returning a TString. tutorials/regexp_pme.C ====================== Tutorial showing usage of the TPMERegexp class. git-svn-id: http://root.cern.ch/svn/root/trunk@23681 27541ba8-7e3a-0410-8455-c3a389f83636
Showing
- core/base/inc/LinkDef2.h 1 addition, 0 deletionscore/base/inc/LinkDef2.h
- core/base/inc/TPRegexp.h 56 additions, 9 deletionscore/base/inc/TPRegexp.h
- core/base/src/TPRegexp.cxx 417 additions, 48 deletionscore/base/src/TPRegexp.cxx
- tutorials/regexp_pme.C 120 additions, 0 deletionstutorials/regexp_pme.C
Loading
Please register or sign in to comment