Class HandleSet


  • public class HandleSet
    extends Object
    • Constructor Detail

      • 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 Detail

      • 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

        public int span​(CharSequence s,
                        int start)
        Span a string using this UnicodeSet.
        Parameters:
        s - The string to be spanned
        start - The start index that the span begins
        Returns:
        the string index which ends the span