ICU-311 The offset is now incremented with the target when a character is substitued.

I also removed some tabs within the file.

X-SVN-Rev: 2037
This commit is contained in:
George Rhoten 2000-07-26 00:20:19 +00:00
parent 27beba0cf0
commit e4767761cf

View File

@ -370,9 +370,11 @@ void UCNV_TO_U_CALLBACK_SUBSTITUTE (
if ((toArgs->targetLimit - toArgs->target) >= 1)
{
*toArgs->target = 0xFFFD;
(toArgs->target)++;
if (toArgs->offsets) *(toArgs->offsets) = 0;
*((toArgs->target)++) = 0xFFFD;
if (toArgs->offsets)
{
*((toArgs->offsets)++) = 0;
}
*err = U_ZERO_ERROR;
}
else
@ -383,7 +385,6 @@ void UCNV_TO_U_CALLBACK_SUBSTITUTE (
}
return;
}
/*uses itou to get a unicode escape sequence of the offensive sequence,