java.lang.Object
com.vmware.vipclient.i18n.l2.plural.parser.HandleSet

public class HandleSet extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    HandleSet(int... pairs)
    Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ...
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(int c)
    Returns true if this set contains the given character.
    int
    span(CharSequence s, int start)
    Span a string using this UnicodeSet.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      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