By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,227 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,227 IT Pros & Developers. It's quick & easy.

Binarysave string class?

P: n/a
Is there a string class available that is able to handle binary data that
may contain #0?
It should be similar to std::string, but not rely on null terminated data.

Konstantin

PS: Sorry, if that message happen to appear twice somewhere. I resent it
via another server it because it did not appear after over 6 hours.

Jul 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"kaymes" <ne******@kseiler.de> wrote in message
news:bo**********@n.ruf.uni-freiburg.de...
| Is there a string class available that is able to handle binary data that
| may contain #0?
| It should be similar to std::string, but not rely on null terminated data.

std::string does *not* rely on null-terminated data.
To allow for NULL chars, all you need to avoid is functions that
take or return null-terminated strings.
hth - Ivan
--
http://ivan.vecerina.com
Jul 19 '05 #2

P: n/a
kaymes wrote:
Is there a string class available that is able to handle binary data
that may contain #0?
You mean '\0'?
It should be similar to std::string, but not rely on null terminated
data.


Then use std::string instead :-)
It does not rely on null termination.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.