summaryrefslogtreecommitdiff
path: root/icu4j/main/classes
diff options
context:
space:
mode:
authorMarkus Scherer <markus.icu@gmail.com>2017-08-24 20:36:19 +0000
committerFredrik Roubert <roubert@google.com>2017-08-29 12:38:24 +0200
commit9f488951dadf99f04c1a0cf24339509ba2273fd2 (patch)
treebcdff5a1493963e8a829f65f7a93f723bb46bbe8 /icu4j/main/classes
parent0a1fd6ff3406eadee6996f2a3b15a3795a4ae592 (diff)
downloadicu-9f488951dadf99f04c1a0cf24339509ba2273fd2.tar.gz
Cherry-pick: ticket:13332: CaseMapImpl.isFollowedByCasedLetter() must increment the string index while looping
http://bugs.icu-project.org/trac/changeset/40353 Bug: 64998746 Test: ant check Test: make check Change-Id: I5977d927befec9c13be5c4eb4b98dbeacb20e44f
Diffstat (limited to 'icu4j/main/classes')
-rw-r--r--icu4j/main/classes/core/src/com/ibm/icu/impl/CaseMapImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/icu4j/main/classes/core/src/com/ibm/icu/impl/CaseMapImpl.java b/icu4j/main/classes/core/src/com/ibm/icu/impl/CaseMapImpl.java
index f28e60ed5..1b2e8b790 100644
--- a/icu4j/main/classes/core/src/com/ibm/icu/impl/CaseMapImpl.java
+++ b/icu4j/main/classes/core/src/com/ibm/icu/impl/CaseMapImpl.java
@@ -852,6 +852,7 @@ public final class CaseMapImpl {
int type = UCaseProps.INSTANCE.getTypeOrIgnorable(c);
if ((type & UCaseProps.IGNORABLE) != 0) {
// Case-ignorable, continue with the loop.
+ i += Character.charCount(c);
} else if (type != UCaseProps.NONE) {
return true; // Followed by cased letter.
} else {