> For a vector or an array I'd agree but a string is a
> bit different.  I'll change my code to
> write(pString->ucs_str(), pString->size * sizeof(UT_UCSChar));

assert(string.size() == strlen (string.c_str()));

This should always be necessarily the case. Substitute ucs_str() and wcstrlen 
or whatever for UCS strings.

Dom

Reply via email to