In message <dg**********@ns2.fe.internet.bosch.com>, Raghavendra Mahuli
<ra************@in.bosch.com> writes
Hi,
Is there anything called Non Null Terminated string (may be in UTF or
something) i.e. a string which does not have a '\0' at the end to
terminate.
std::basic_string (and hence std::string and std::wstring) can contain
nulls and need not be terminated by one.
In that case how can the end be identified?
When constructing or assigning to it, by using the forms of the
constructor or the insert(), assign(), append() etc. functions which
take a pointer and a count, or two iterators. When obtaining its value,
by using the data() and size() functions.
--
Richard Herring