Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-08-03 06:28:20


llwaeva_at_[hidden] wrote:
>>> I got the string (char*s), which is too big (>10M), from an external
>>> library, it's too slow to convert the raw string to std::string
>>> before it is handled by replace_all_regex
>>
>> Here's your fundamental problem: regex does not do in-place search
>> and replace.
> It is boost::algorithm::replace_all_regex, not boost:regex_replace

It doesn't change the argument though. In place search and replace to a
fixed size buffer is simply asking for trouble.

John.


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