ICU-847 Work with set sortkey length also

X-SVN-Rev: 7531
This commit is contained in:
Vladimir Weinstein 2002-01-30 06:16:58 +00:00
parent 53d6bdbe2a
commit 1e4be9dcb9

View File

@ -4261,9 +4261,11 @@ ucol_getBound(const uint8_t *source,
if(source[sourceIndex] == UCOL_LEVELTERMINATOR) {
noOfLevels--;
}
} while (noOfLevels > 0 && source[sourceIndex] != 0);
} while (noOfLevels > 0
&& (source[sourceIndex] != 0 || sourceIndex == sourceLength));
if(source[sourceIndex] == 0 && noOfLevels > 0) {
if((source[sourceIndex] != 0 || sourceIndex == sourceLength)
&& noOfLevels > 0) {
*status = U_SORT_KEY_TOO_SHORT_WARNING;
}