[root] / trunk / core / base / src / TRegexp.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TRegexp.cxx

Parent Directory Parent Directory


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

Revision 43628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 15:18:02 2012 UTC (2 years, 9 months ago) by axel
File length: 11178 byte(s)
Diff to previous 40918
Empty tokens are tokens, too.
a,,b with delim ',' now returns "a", "", "b".

Revision 40918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 18 16:58:07 2011 UTC (3 years, 4 months ago) by rdm
File length: 11282 byte(s)
Diff to previous 35844
From Matt Strait:
This patch documents that TRegexp does not support '|' (union) and thus
"a|b" does not match "a", as most users familiar with regular expressions
would expect. It more fully explains what the wildcard flag in the
constructor does, and documents the return values of the various Index()
functions. No code is changed.

Revision 35844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 28 15:10:29 2010 UTC (4 years, 3 months ago) by rdm
File length: 10881 byte(s)
Diff to previous 30974
fix coverity 13130.

Revision 30974 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 4 23:42:44 2009 UTC (5 years, 2 months ago) by rdm
File length: 10578 byte(s)
Diff to previous 22961
From Axel:
Remove non-const builders of TSubString; their const overloads are sufficient.

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: 11117 byte(s)
Diff to previous 20877
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

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/src/TRegexp.cxx
File length: 11117 byte(s)
Diff to previous 20457
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 20457 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 23 16:39:47 2007 UTC (7 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 11117 byte(s)
Diff to previous 20440
From Gerri:
tokenizing "ab" with "/" was giving 2 tokens: 'ab', 'b', while the other
 tokenizer gives one, 'ab', as 'strtok'.

Revision 20440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 22 14:38:47 2007 UTC (7 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 11209 byte(s)
Diff to previous 19826
fix TString::Tokenize(tok, from, delim) to behave like the other
TString::Tokenize() and like strtok().

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/src/TRegexp.cxx
File length: 11193 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/src/TRegexp.cxx
File length: 11242 byte(s)
Diff to previous 19690
remove :$ from tag line

Revision 19690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 09:13:47 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 11252 byte(s)
Diff to previous 19687
fix in handling of ? wildcard.

Revision 19687 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 26 17:52:42 2007 UTC (7 years, 5 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 10967 byte(s)
Diff to previous 19661
consider '?' to also be a wildcard character in MakeWildcard().

Revision 19661 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 21 13:12:19 2007 UTC (7 years, 5 months ago) by brun
Original Path: trunk/base/src/TRegexp.cxx
File length: 10940 byte(s)
Diff to previous 16471
Add a protection in TRegexp::MakeWildcard when called with a null argument.

Revision 16471 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 7 18:01:59 2006 UTC (8 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 10926 byte(s)
Diff to previous 16454
From Gerri:
after consultation with Axel and Fons changed new Tokenize() to:
Bool_t Tokenize(TString &tok, Ssiz_t &from, const char *delim) const

Revision 16454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 5 21:04:38 2006 UTC (8 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 10730 byte(s)
Diff to previous 13258
From Gerri:
improved tokenizer with an easier interface and no need to manage an TObjArray
or tokens:
        // String to be tokenized
        TString myl = "tok1 tok2|tok3";
        TString tok;
        int from = 0;  // or the index where to start from
        while ((from = myl.Tokenize(tok, from, "[ |]") != -1) {
            if (!tok.IsNull()) {
                // Analyse tok
                ...
            }
        }

Revision 13258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 20:11:59 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/base/src/TRegexp.cxx
File length: 9126 byte(s)
Diff to previous 6971
White spaces and comments update

Revision 6971 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 18 13:21:05 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/base/src/TRegexp.cxx
File length: 9107 byte(s)
Diff to previous 5374
Document TRegexp

Revision 5374 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 2 12:33:28 2002 UTC (12 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8129 byte(s)
Diff to previous 5364
hopefully fix missing wildcard chars forever.

Revision 5364 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 30 17:31:46 2002 UTC (12 years, 3 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8077 byte(s)
Diff to previous 5236
support the [] characters in character classes, i.e. [A-Z[]].
Note that the [] must appear as a pair within the class not interspersed
by any other character.

Revision 5236 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 8 00:07:21 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8073 byte(s)
Diff to previous 5132
allow < and > in wildcards.

Revision 5132 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 16 14:16:55 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8070 byte(s)
Diff to previous 4823
add + as legal file name character in case of wildcards. Fixes problem for
Atlas data challenge.

Revision 4823 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 5 22:11:00 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/base/src/TRegexp.cxx
File length: 8067 byte(s)
Diff to previous 3996
From Philippe:
In MakeWilcard the pattern used was

#ifndef R__WIN32
         const char *wc = "[a-zA-Z0-9_\\.,:- ]";
#else
         const char *wc = "[a-zA-Z0-9_.,- ]";
#endif

Note the position of the last '-' which said to use all character
between ':' and ' ' (and between ',' and ' ' on NT).  This is unlikely
to be the desired effect.  Worse on windows, the character '-' itself is
not in the range ',' to ' ', hence a file name like MC-2.root did NOT
match the expression MC*.root.

Instead we should probably use:

#ifndef R__WIN32
         const char *wc = "[a-zA-Z0-9_\\.,: -]";
#else
         const char *wc = "[a-zA-Z0-9_., -]";
#endif

Revision 3996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 15 11:41:52 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8067 byte(s)
Diff to previous 3787
allow ' ' and ',' as part of a wildcard. Fixes listing of directories
containing objects with names like "tree data".

Revision 3787 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 27 13:39:35 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 8037 byte(s)
Diff to previous 3720
add special case for Win32 pathnames in MakeWildcard().

Revision 3720 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 20 17:48:45 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 7950 byte(s)
Diff to previous 3691
in MakeWildcard() added special treatment for "/", i.e. "*" is preceded by
all characters except "/" (was all characters including "/"). This change
allows the easy matching of pathnames, e.g. "*.root" will match "aap.root",
but not "pipo/aap.root", the latter can be matched by "pipo/*.root" or
by "*/*.root". Mod proposed by Victor Perev. for STAR.

Revision 3691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 17 12:15:14 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 7723 byte(s)
Diff to previous 3
increase kMAXPATHLEN and fgMaxpat to 2048 (Windows max path length).

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/base/src/TRegexp.cxx
File length: 7662 byte(s)
Copied from: branches/rdm/base/src/TRegexp.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/base/src/TRegexp.cxx
File length: 7662 byte(s)
Initial import of ROOT into CVS

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