Skip to content
Snippets Groups Projects
Commit f1c80f10 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

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
parent 3dc9f1d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment