|
Boost Users : |
Subject: Re: [Boost-users] [regex] Context-sensitive replacement oftextusingregex_replace
From: Eric Niebler (eric_at_[hidden])
Date: 2009-02-25 14:33:36
John Maddock wrote:
> Eric Niebler wrote:
>> You can read about it here: http://tinyurl.com/bd6c3f. I like this
>> interface because it gives the formatter object lots of context and
>> makes formatting potentially very efficient.
>>
>> It would be great if Boost.Regex and Boost.Xpressive settled on a common
>> callback interface for regex_replace().
>
> I think the interface you have there is very good - I'd always assumed
> that the callback would accept a match_results not a string - as you say
> the performance would be just so much better...
Great! But if you adopt this interface, folks will have 1 less reason to
use xpressive. So I get to keep formatter expressions. ;-)
-- Eric Niebler BoostPro Computing http://www.boostpro.com
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net