< prev index next >

src/java.base/share/classes/java/util/regex/Grapheme.java

Print this page
rev 58251 : [mq]: 8216332

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -69,11 +69,11 @@
         while (ret < limit) {
             ch1 = Character.codePointAt(src, ret);
             int t1 = getGraphemeType(ch1);
 
             if (gb11 && t0 == ZWJ && t1 == EXTENDED_PICTOGRAPHIC) {
-                gb11 = false;
+                // continue for gb11
             } else if (riCount % 2 == 1 && t0 == RI && t1 == RI) {
                 // continue for gb12
             } else if (rules[t0][t1]) {
                 if (ret > off) {
                     break;
< prev index next >