Class CaseIterator

java.lang.Object
com.ibm.icu.dev.demo.translit.CaseIterator

public class CaseIterator extends Object
Incrementally returns the set of all strings that case-fold to the same value.
  • Field Details

    • toName

      static Transliterator toName
    • toHex

      static Transliterator toHex
    • toHex2

      static Transliterator toHex2
    • fromCaseFold

      private static Map fromCaseFold
    • toCaseFold

      private static Map toCaseFold
    • maxLength

      private static int maxLength
    • GENERATE

      private static final boolean GENERATE
      See Also:
    • DUMP

      private static final boolean DUMP
      See Also:
    • exceptionList

      private static String[][] exceptionList
    • count

      private int count
    • variants

      private String[][] variants
    • done

      private boolean done
    • counts

      private int[] counts
    • nextBuffer

      private StringBuffer nextBuffer
  • Constructor Details

    • CaseIterator

      public CaseIterator()
  • Method Details

    • reset

      public void reset(String source)
      Reset to different source. Once reset, the iteration starts from the beginning.
      Parameters:
      source - The string to get case variants for
    • reset

      public void reset()
      Restart the iteration from the beginning, but with same source
    • next

      public String next()
      Iterates through the case variants.
      Returns:
      next case variant. Each variant will case-fold to the same value as the source will. When the iteration is done, null is returned.
    • main

      public static void main(String[] args)
      Temporary test, just to see how the stuff works.