mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 15:27:38 +00:00
ICU-176 Fixed an Error in move32()
X-SVN-Rev: 1635
This commit is contained in:
parent
8d12ca8e17
commit
cdc7d9b910
1 changed files with 2 additions and 2 deletions
|
@ -323,13 +323,13 @@ UCharCharacterIterator::move32(int32_t delta, CharacterIterator::EOrigin origin)
|
|||
if(delta > 0) {
|
||||
UTF_FWD_N(text, pos, end, delta);
|
||||
} else {
|
||||
UTF_BACK_N(text, pos, end, -delta);
|
||||
UTF_BACK_N(text, begin, pos, -delta);
|
||||
}
|
||||
break;
|
||||
case kEnd:
|
||||
pos = end;
|
||||
if(delta < 0) {
|
||||
UTF_BACK_N(text, pos, end, -delta);
|
||||
UTF_BACK_N(text, begin, pos, -delta);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue