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. Regards, Leon Mergen
On Tue, 28 Jun 2005 16:21:51 +0200, Leon Mergen
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.
I use it for binary data, and have not run into any problems. I would be extremely surprised if there were any assumptions by the string algorithms that the data is text only. -- Be seeing you.
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
On Tue, 2005-06-28 at 19:07 +0200, Pavol Droba wrote:
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.
Ok, thanks for the information! Regards, Leon Mergen
participants (3)
-
Leon Mergen
-
Pavol Droba
-
Thore Karlsen