[pcre-dev] [Bug 2511] Feature Request: PCRE2_SUBSTITUTE, op…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2511] Feature Request: PCRE2_SUBSTITUTE, option for getting *just* the replacement of a single match
https://bugs.exim.org/show_bug.cgi?id=2511

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED


--- Comment #5 from Philip Hazel <ph10@???> ---
(In reply to Kilian from comment #4)
> Exactly!
>
> But still I find a separate function which factors out the already existing
> functionality more clean. Else PCRE2 will die from too many flags ;-).


It may (or may not) be more clean, but it would be a lot more work. I have
implemented my suggested option. The code (in both pcre2_substitute() and
pcre2test) was simple. What took a lot more time was the documentation. It
would have been much more work to implement a new function and its test code
and even more documentation, and as I said before, I feel this is a very
minority requirement.

As for flags, there are still 11 free bits. :-)

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