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:
parent
829795fb7c
commit
1c03ed161c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user