[pcre-dev] [Bug 2488] New: Feature Request: PCRE2_SUBSTITUT…

Página superior
Eliminar este mensaje
Autor: admin
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 2488] New: Feature Request: PCRE2_SUBSTITUTE_LITERAL, option for substitute already matched
https://bugs.exim.org/show_bug.cgi?id=2488

            Bug ID: 2488
           Summary: Feature Request: PCRE2_SUBSTITUTE_LITERAL, option for
                    substitute already matched
           Product: PCRE
           Version: N/A
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: kkilger@???
                CC: pcre-dev@???


We have an API which allows to substitute an already matched result. When using
PCRE2 and calling pcre2_substitute we have to match again. This could be
factored out, so that substituting an already matched result is possible. The
implementation is merely trivial, only the API has to be adjusted.

So I suggest introducing a new function, say pcre2_substitute_match
which will accept a previously obtained match. The original function could be
rewritten to just call pcre2_substitute_match.

--
You are receiving this mail because:
You are on the CC list for the bug.