mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 10:17:23 +00:00
ICU-1763 fix moveCodepiont which failed
X-SVN-Rev: 9187
This commit is contained in:
parent
337aaade17
commit
6d372fe771
1 changed files with 4 additions and 4 deletions
|
@ -5,8 +5,8 @@
|
|||
*******************************************************************************
|
||||
*
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/impl/Attic/UCharacterIterator.java,v $
|
||||
* $Date: 2002/06/21 01:16:06 $
|
||||
* $Revision: 1.7 $
|
||||
* $Date: 2002/07/16 00:31:35 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -379,9 +379,9 @@ public abstract class UCharacterIterator
|
|||
*/
|
||||
public int moveCodePointIndex(int delta){
|
||||
if(delta>0){
|
||||
while(delta-->0 && nextCodePoint() != DONE);
|
||||
while(delta>0 && nextCodePoint() != DONE){delta--;}
|
||||
}else{
|
||||
while(delta++<0 && previousCodePoint() != DONE);
|
||||
while(delta<0 && previousCodePoint() != DONE){delta++;}
|
||||
}
|
||||
if(delta!=0){
|
||||
throw new IndexOutOfBoundsException();
|
||||
|
|
Loading…
Add table
Reference in a new issue