mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue