commit | bec95b9d8825b39cff46a8c645fa0eeb8409854e | [log] [tgz] |
---|---|---|
author | Fredrik Lundh <fredrik@pythonware.com> | Sun Oct 21 16:47:57 2001 +0000 |
committer | Fredrik Lundh <fredrik@pythonware.com> | Sun Oct 21 16:47:57 2001 +0000 |
tree | 11a28a4cc7b744dc07c72c52a89655fbf3868330 | |
parent | 5b68ce3122a7663ca027a3e17e21d5d5561d09d9 [diff] |
rewrote the pattern.sub and pattern.subn methods in C removed (conceptually flawed) getliteral helper; the new sub/subn code uses a faster code path for literal replacement strings, but doesn't (yet) look for literal patterns. added STATE_OFFSET macro, and use it to convert state.start/ptr to char indexes