~pythonregexp2.7/python/issue2636-01

Viewing all changes in revision 39045.

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-07 20:07:43 UTC
  • Revision ID: darklord@timehorse.com-20080607200743-313vs01mxqhxio70
A new version of the non-simple Possessive Qualifier handler which, like
the Max Until handler, has two loops now.  The first loop is used to
short-circuit any repeat pattern which would not have enough matches in
the repetition.  The second loop is the same as the original, more or
less, for matching as much more as possible, with the exception that it
now knows that a failure to match is always successful because the short
matches are already handled in the first loop.  Because the first loop is
much simpler than the second, it makes sense to do it this way since the
first loop does not require all the extra code, such as special mark
handlers, that the second does.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: