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
F
Fredrik Lundh committed
bec95b9d8825b39cff46a8c645fa0eeb8409854e
Parent: 5b68ce3