ICU-5170 bug with rbbi::previous() when first char is a supplementary. Introduced by UText's handling of supplementary indexing.

X-SVN-Rev: 19746
This commit is contained in:
Andy Heninger 2006-06-22 00:53:43 +00:00
parent 829795fb7c
commit 1c03ed161c

View File

@ -692,7 +692,8 @@ int32_t RuleBasedBreakIterator::following(int32_t offset) {
// old rule syntax
utext_setNativeIndex(fText, offset);
if (offset == 0) {
if (offset==0 ||
offset==1 && utext_getNativeIndex(fText)==0) {
return next();
}
result = previous();