jakarta-oro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Lipofsky <dlipof...@kurion.com>
Subject currentOffset in PatternMatcherInput
Date Thu, 16 Nov 2000 03:21:39 GMT
I think that if a match fails that the currentOffset in PatternMatcherInput
should not change.  Instead it appears to move to the end of the string in
the event of a failed match, which makes it hard to try another match from
that point.  What do y'all think?  The man page for PatternMatcherInput says
"the end offset of the last match is remembered, so that the next match is
performed from that point where the last match left off. This offset can be
accessed from the getCurrentOffset() method and ..."
I interpret "last match" to mean "last successful match" not "last attempt".
- Dan

Mime
View raw message