public class HandleSet
extends java.lang.Object
| Constructor and Description |
|---|
HandleSet(int... pairs)
Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2,
...
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int c)
Returns true if this set contains the given character.
|
int |
span(java.lang.CharSequence s,
int start)
Span a string using this UnicodeSet.
|
public HandleSet(int... pairs)
pairs - pairs of characterpublic boolean contains(int c)
c - character to be checked for containmentpublic int span(java.lang.CharSequence s,
int start)
s - The string to be spannedstart - The start index that the span begins