mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-1952 UCharacterIterator next/previousCodePoint
X-SVN-Rev: 8913
This commit is contained in:
parent
699e4d0238
commit
4a6e11bcba
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/20 01:18:09 $
|
||||
* $Revision: 1.6 $
|
||||
* $Date: 2002/06/21 01:16:06 $
|
||||
* $Revision: 1.7 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -204,7 +204,7 @@ public abstract class UCharacterIterator
|
|||
if(UTF16.isTrailSurrogate((char)ch2)){
|
||||
return UCharacterProperty.getRawSupplementary((char)ch1,
|
||||
(char)ch2);
|
||||
}else{
|
||||
}else if (ch2 != DONE) {
|
||||
// unmatched surrogate so back out
|
||||
previous();
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ public abstract class UCharacterIterator
|
|||
if(UTF16.isLeadSurrogate((char)ch2)){
|
||||
return UCharacterProperty.getRawSupplementary((char)ch2,
|
||||
(char)ch1);
|
||||
}else{
|
||||
}else if (ch2 != DONE) {
|
||||
//unmatched trail surrogate so back out
|
||||
next();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue