Log of /trunk/core/base/src/TRegexp.cxx
Parent Directory
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
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
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
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
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.
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.