28 Jun
2005
28 Jun
'05
5:07 p.m.
Hi, On Tue, Jun 28, 2005 at 04:21:51PM +0200, Leon Mergen wrote:
Hello,
I need to replace patterns in a string with contains (partially) binary data. Is it safe to use the Boost string algorithms for it ? I wasn't able to find anything about binary-safety of the string algorithms in the Boost documentation.
Boost.StringAlgo does not perform any string specific processing on the input. So you can safely use them on binary data. There is actualy also an example of simple rle compression using string algorithms. You can find it in boost/libs/algorithm/string/example/ directory. Regards, Pavol