ICU-861 Sets the string end pointer after reset.

X-SVN-Rev: 4917
This commit is contained in:
Syn Wee Quek 2001-06-08 01:16:44 +00:00
parent c568f25e06
commit 15b2232eca

View File

@ -207,6 +207,9 @@ ucol_setOffset(UCollationElements *elems,
collIterate *ci = &(elems->iteratordata_);
ci->pos = ci->string + offset;
ci->CEpos = ci->toReturn = ci->CEs;
if ((ci->flags & UCOL_ITER_HASLEN) == 0) {
ci->endp = ci->string + u_strlen(ci->string);
}
ci->flags = UCOL_ITER_HASLEN;
if (ci->coll->normalizationMode == UCOL_ON) {
ci->flags |= UCOL_ITER_NORM;