ICU-8816 Fix missing code to utilize fast frozen data structure.

X-SVN-Rev: 30654
This commit is contained in:
Mark Davis 2011-09-13 22:13:48 +00:00
parent 739dc92460
commit acf033775b

View 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