]> granicus.if.org Git - icu/commitdiff
ICU-8816 Fix missing code to utilize fast frozen data structure.
authorMark Davis <mark@macchiato.com>
Tue, 13 Sep 2011 22:13:48 +0000 (22:13 +0000)
committerMark Davis <mark@macchiato.com>
Tue, 13 Sep 2011 22:13:48 +0000 (22:13 +0000)
X-SVN-Rev: 30654

icu4j/main/classes/core/src/com/ibm/icu/text/UnicodeSet.java

index dae9071d0dad94a20a40774169aee3a10bea9830..9866edb5d1d300d414502508941ba6f56e05ce1d 100644 (file)
@@ -1598,6 +1598,12 @@ public class UnicodeSet extends UnicodeFilter implements Iterable<String>, Compa
         if (c < MIN_VALUE || c > MAX_VALUE) {
             throw new IllegalArgumentException("Invalid code point U+" + Utility.hex(c, 6));
         }
+        if (bmpSet != null) {
+            return bmpSet.contains(c);
+        }
+        if (stringSpan != null) {
+            return stringSpan.contains(c);
+        }
 
         /*
         // Set i to the index of the start item greater than ch