Re: UT_UCS2String problems


Subject: Re: UT_UCS2String problems
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Fri Jun 01 2001 - 14:43:46 CDT


> 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



This archive was generated by hypermail 2b25 : Fri Jun 01 2001 - 17:24:16 CDT