Class HandleSet
java.lang.Object
com.vmware.vipclient.i18n.l2.plural.parser.HandleSet
-
Constructor Summary
ConstructorsConstructorDescriptionHandleSet(int... pairs) Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ... -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(int c) Returns true if this set contains the given character.intspan(CharSequence s, int start) Span a string using this UnicodeSet.
-
Constructor Details
-
HandleSet
public HandleSet(int... pairs) Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ...- Parameters:
pairs- pairs of character
-
-
Method Details
-
contains
public boolean contains(int c) Returns true if this set contains the given character.- Parameters:
c- character to be checked for containment- Returns:
- true if the test condition is met
-
span
Span a string using this UnicodeSet.- Parameters:
s- The string to be spannedstart- The start index that the span begins- Returns:
- the string index which ends the span
-