[root] / trunk / core / base / inc / TPRegexp.h Repository:
ViewVC logotype

Log of /trunk/core/base/inc/TPRegexp.h

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48661 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 21 11:27:36 2013 UTC (23 months ago) by rdm
File length: 5855 byte(s)
Diff to previous 26600
From Matevz:
In TPRegexp::Compile() do not call Optimize() if regexp compilation has failed.

Add a static flag 'Bool_t TPRegexp::fgThrowAtCompileError' that allows callers
to intercept a faulty regexp being passed to Compile(). When this flag is
in effect, a failed regexp compilation throws a std::runtime_error.

Add member function 'Bool_t TPRegexp::IsValid() const' that returns true if
the object holds a valid compiled representation of the regexp.

Revision 26600 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 2 18:56:10 2008 UTC (6 years, 1 month ago) by brun
File length: 5682 byte(s)
Diff to previous 25863
From Matevz:
Change signature of TPMERegexp member-function:
 TString Substitute(const TString& s, const TString& r, Bool_t doDollarSubst=kTRUE);
to
 Int_t   Substitute(TString& s, const TString& r, Bool_t doDollarSubst=kTRUE);
so that it conforms to the interface of the parent class TPRegexp.

Revision 25863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 17 18:53:10 2008 UTC (6 years, 3 months ago) by brun
File length: 5688 byte(s)
Diff to previous 25582
From Federico:
More corrections to support effc++

Revision 25582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 29 13:39:40 2008 UTC (6 years, 3 months ago) by rdm
File length: 5613 byte(s)
Diff to previous 23681
From Matevz:
1. New functions:
    Int_t GetGlobalPosition();
    void  AssignGlobalState(const TPMERegexp& re)
   making it easier to continue global matching from where previous
   regexp left-off.
   Improve documentation of ResetGlobalState().

2. New functions:
    void Reset(const TString& s, const TString& opts = "", Int_t nMatchMax = -1);
    void Reset(const TString& s, UInt_t opts, Int_t nMatchMax = -1);
  This allows regexp to be reinitialized completely.
  Useful when TPMERegexp objects are used as data-members.

3. Add missing ClassImp() - the TPRegexp documentation was used.
  Add reference to the tutorial script.

Revision 23681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 7 14:36:58 2008 UTC (6 years, 8 months ago) by rdm
File length: 5338 byte(s)
Diff to previous 22961
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.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 3626 byte(s)
Diff to previous 22539
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 22539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 14:36:37 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/base/inc/TPRegexp.h
File length: 3626 byte(s)
Diff to previous 20877
From Alja, Bertrand & Matevz: merged branches/dev/fireworks 21757:22514.

This includes:

- development for event-displays of ALICE and CMS since 5.18 in eve/,
  gl/ and gui/;

- many new tutorials and demos for eve/;

- fix in TQObject to support class-signals from all base-classes.

Revision 20877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:17:07 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/inc/TPRegexp.h
File length: 3167 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/inc/TPRegexp.h
File length: 3167 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/inc/TPRegexp.h
File length: 3214 byte(s)
Diff to previous 13467
remove :$ from tag line

Revision 13467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 2 22:39:56 2005 UTC (9 years, 1 month ago) by pcanal
Original Path: trunk/base/inc/TPRegexp.h
File length: 3224 byte(s)
Diff to previous 13456
trailing comman in enum are forbidden (at least on solaris)

Revision 13456 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Dec 2 16:17:48 2005 UTC (9 years, 1 month ago) by rdm
Original Path: trunk/base/inc/TPRegexp.h
File length: 3228 byte(s)
Several new Core features:
- new TPRegexp class by Eddy Offermann using the PCRE library for powerful
  regexp matching. TPRegexp is fully integrated in TString and can be
  used like TRegExp. For more see the TPRegexp clas description.
- Extended TString::Atoi(), Atof(), IsDigit() and new IsFloat() by
  John Frankland. For more see the method description.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9