|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.text.CanonicalIterator
public final class CanonicalIterator
This class allows one to iterate through all the strings that are canonically equivalent to a given string. For example, here are some sample results: Results for: {A WITH RING ABOVE}{d}{DOT ABOVE}{CEDILLA}
1: {A}{RING ABOVE}{d}{DOT ABOVE}{CEDILLA} 2: {A}{RING ABOVE}{d}{CEDILLA}{DOT ABOVE} 3: {A}{RING ABOVE}{d WITH DOT ABOVE}{CEDILLA} 4: {A}{RING ABOVE}{d WITH CEDILLA}{DOT ABOVE} 5: {A WITH RING ABOVE}{d}{DOT ABOVE}{CEDILLA} 6: {A WITH RING ABOVE}{d}{CEDILLA}{DOT ABOVE} 7: {A WITH RING ABOVE}{d WITH DOT ABOVE}{CEDILLA} 8: {A WITH RING ABOVE}{d WITH CEDILLA}{DOT ABOVE} 9: {ANGSTROM SIGN}{d}{DOT ABOVE}{CEDILLA} 10: {ANGSTROM SIGN}{d}{CEDILLA}{DOT ABOVE} 11: {ANGSTROM SIGN}{d WITH DOT ABOVE}{CEDILLA} 12: {ANGSTROM SIGN}{d WITH CEDILLA}{DOT ABOVE}
Constructor Summary | |
---|---|
CanonicalIterator(String source)
Construct a CanonicalIterator object |
Method Summary | |
---|---|
String |
getSource()
Gets the NFD form of the current source we are iterating over. |
String |
next()
Get the next canonically equivalent string. |
static void |
permute(String source,
boolean skipZeros,
Set output)
Deprecated. This API is ICU internal only. |
void |
reset()
Resets the iterator so that one can start again from the beginning. |
void |
setSource(String newSource)
Set a new source for this iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CanonicalIterator(String source)
source
- string to get results forMethod Detail |
---|
public String getSource()
public void reset()
public String next()
public void setSource(String newSource)
newSource
- the source string to iterate against. This allows the same iterator to be used
while changing the source string, saving object creation.public static void permute(String source, boolean skipZeros, Set output)
source
- the string to find permutations forskipZeros
- set to true to skip characters with canonical combining class zerooutput
- the set to add the results to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |