mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-8816 Fix missing code to utilize fast frozen data structure.
X-SVN-Rev: 30654
This commit is contained in:
parent
739dc92460
commit
acf033775b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue