Package com.ibm.icu.dev.demo.translit
Class CaseIterator
java.lang.Object
com.ibm.icu.dev.demo.translit.CaseIterator
Incrementally returns the set of all strings that case-fold to the same value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int[]
private boolean
private static final boolean
private static String[][]
private static Map
private static final boolean
private static int
private StringBuffer
private static Map
(package private) static Transliterator
(package private) static Transliterator
(package private) static Transliterator
private String[][]
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
toName
-
toHex
-
toHex2
-
fromCaseFold
-
toCaseFold
-
maxLength
private static int maxLength -
GENERATE
private static final boolean GENERATE- See Also:
-
DUMP
private static final boolean DUMP- See Also:
-
exceptionList
-
count
private int count -
variants
-
done
private boolean done -
counts
private int[] counts -
nextBuffer
-
-
Constructor Details
-
CaseIterator
public CaseIterator()
-
-
Method Details
-
reset
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
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
Temporary test, just to see how the stuff works.
-