From: <Cha...@si...> - 2002-07-31 23:29:19
|
Sorry to bother you guys with this, but...I'm trying to get normalization to work. I'm converting from an array of OLECHARs to a UnicodeString before I do a Normalizer::normalize function. No matter how I try it, I keep gettng a U_STRING_NOT_TERMINATED_WARNING. Can you help? My code section is below. UnicodeString ustIn; for (int cch = 0; cch < cchIn; cch++) ustIn += prgchIn[cch]; UnicodeString ustOut; UChar uch = 18; //these two lines put a cap that ICU code recognizes on the ustIn += uch; //string we're dealing with Normalizer norm(ustIn, UNORM_NFKD); UErrorCode ErrorCode = U_ZERO_ERROR; int ch = 0; norm.normalize(ustIn, UNORM_NFKD, 0, ustOut, ErrorCode); Thanks, Charley |