| java.lang.Object com.ibm.icu.impl.USerializedSet
USerializedSet | final public class USerializedSet (Code) | | Simple class for handling serialized USet/UnicodeSet structures
without object creation. See ICU4C icu/source/common/uset.c.
|
Method Summary | |
final public boolean | contains(int c) Returns true if the given USerializedSet contains the given
character. | final public int | countRanges() Returns the number of disjoint ranges of characters contained in
the given serialized set. | final public boolean | getRange(int rangeIndex, int[] range) Returns a range of characters contained in the given serialized
set. | final public boolean | getSet(char src, int srcStart) Fill in the given serialized set object. | final public void | setToOne(int c) Set the USerializedSet to contain the given character (and nothing
else). |
contains | final public boolean contains(int c)(Code) | | Returns true if the given USerializedSet contains the given
character.
Parameters: c - the character to test for true if set contains c |
countRanges | final public int countRanges()(Code) | | Returns the number of disjoint ranges of characters contained in
the given serialized set. Ignores any strings contained in the
set.
a non-negative integer counting the character rangescontained in set |
getRange | final public boolean getRange(int rangeIndex, int[] range)(Code) | | Returns a range of characters contained in the given serialized
set.
Parameters: rangeIndex - a non-negative integer in the range 0..getSerializedRangeCount()-1 Parameters: range - variable to receive the data in the range true if rangeIndex is valid, otherwise false |
getSet | final public boolean getSet(char src, int srcStart)(Code) | | Fill in the given serialized set object.
Parameters: src - pointer to start of array Parameters: srcStart - pointer to start of serialized data (length value) true if the given array is valid, otherwise false |
setToOne | final public void setToOne(int c)(Code) | | Set the USerializedSet to contain the given character (and nothing
else).
|
|
|