while(length>0) {
u=*us++;
if(!UCHAR_IS_INVARIANT(u)) {
- UPRV_UNREACHABLE; /* Variant characters were used. These are not portable in ICU. */
+ U_ASSERT(FALSE); /* Variant characters were used. These are not portable in ICU. */
+ u=0;
}
*cs++=(char)UCHAR_TO_CHAR(u);
--length;
// Verify that it is the next one in sequence, which is all
// that is allowed.
if (index != limitIx) {
- UPRV_UNREACHABLE;
+ U_ASSERT(FALSE);
+ return NULL;
}
// Manage the circular CE buffer indexing
// Verify that it is the next one in sequence, which is all
// that is allowed.
if (index != limitIx) {
- UPRV_UNREACHABLE;
+ U_ASSERT(FALSE);
+ return NULL;
}
// Manage the circular CE buffer indexing