[pcre-dev] [Bug 975] New: New signatures and functionalities…

Páxina inicial
Borrar esta mensaxe
Autor: Domingo Alvarez Duarte
Data:  
Para: pcre-dev
Asunto: [pcre-dev] [Bug 975] New: New signatures and functionalities to pcrecpp::Replace and precpp::GlobalReplace
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=975
           Summary: New signatures and functionalities to pcrecpp::Replace
                    and precpp::GlobalReplace
           Product: PCRE
           Version: 8.01
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: mingodad@???
                CC: pcre-dev@???



Start using libpcrecpp I missed a way to pass a function pointer that will
return the substitution string to the replace functions and did a modification
to then that is backward compatible.

  bool Replace(const StringPiece& rewrite,
               string *str, Rewrite_Func rewrite_runc = NULL) const;


  int GlobalReplace(const StringPiece& rewrite,
                    string *str, Rewrite_Func rewrite_runc = NULL) const;


  bool Extract(const StringPiece &rewrite,
               const StringPiece &text,
               string *out, Rewrite_Func rewrite_runc = NULL) const;



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email