• Fredrik Lundh's avatar
    rewrote the pattern.sub and pattern.subn methods in C · bec95b9d
    Fredrik Lundh authored
    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
    bec95b9d
sre.py 13.2 KB