mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-22707 Fix an ancient bug in moveIndex32
This commit is contained in:
parent
b3ec8d1abd
commit
d1490896ed
1 changed files with 2 additions and 2 deletions
|
@ -2093,8 +2093,8 @@ public class RBBITestMonkey extends CoreTestFmwk {
|
|||
}
|
||||
pos--;
|
||||
c = s.charAt(pos);
|
||||
if (UTF16.isTrailSurrogate(c) && pos >= 0) {
|
||||
c = s.charAt(pos);
|
||||
if (UTF16.isTrailSurrogate(c) && pos > 0) {
|
||||
c = s.charAt(pos - 1);
|
||||
if (UTF16.isLeadSurrogate(c)) {
|
||||
pos--;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue