Package com.ibm.icu.dev.demo.translit
Class CaseIterator
- java.lang.Object
-
- com.ibm.icu.dev.demo.translit.CaseIterator
-
public class CaseIterator extends java.lang.Object
Incrementally returns the set of all strings that case-fold to the same value.
-
-
Field Summary
Fields Modifier and Type Field Description private int
count
private int[]
counts
private boolean
done
private static boolean
DUMP
private static java.lang.String[][]
exceptionList
private static java.util.Map
fromCaseFold
private static boolean
GENERATE
private static int
maxLength
private java.lang.StringBuffer
nextBuffer
private static java.util.Map
toCaseFold
(package private) static Transliterator
toHex
(package private) static Transliterator
toHex2
(package private) static Transliterator
toName
private java.lang.String[][]
variants
-
Constructor Summary
Constructors Constructor Description CaseIterator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Temporary test, just to see how the stuff works.java.lang.String
next()
Iterates through the case variants.void
reset()
Restart the iteration from the beginning, but with same sourcevoid
reset(java.lang.String source)
Reset to different source.
-
-
-
Field Detail
-
toName
static Transliterator toName
-
toHex
static Transliterator toHex
-
toHex2
static Transliterator toHex2
-
fromCaseFold
private static java.util.Map fromCaseFold
-
toCaseFold
private static java.util.Map toCaseFold
-
maxLength
private static int maxLength
-
GENERATE
private static final boolean GENERATE
- See Also:
- Constant Field Values
-
DUMP
private static final boolean DUMP
- See Also:
- Constant Field Values
-
exceptionList
private static java.lang.String[][] exceptionList
-
count
private int count
-
variants
private java.lang.String[][] variants
-
done
private boolean done
-
counts
private int[] counts
-
nextBuffer
private java.lang.StringBuffer nextBuffer
-
-
Method Detail
-
reset
public void reset(java.lang.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 java.lang.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(java.lang.String[] args)
Temporary test, just to see how the stuff works.
-
-