public final class CanonicalIterator
extends java.lang.Object
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 and Description |
---|
CanonicalIterator(java.lang.String source)
Construct a CanonicalIterator object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSource()
Gets the NFD form of the current source we are iterating over.
|
java.lang.String |
next()
Get the next canonically equivalent string.
|
static void |
permute(java.lang.String source,
boolean skipZeros,
java.util.Set<java.lang.String> output)
Deprecated.
This API is ICU internal only.
|
void |
reset()
Resets the iterator so that one can start again from the beginning.
|
void |
setSource(java.lang.String newSource)
Set a new source for this iterator.
|
public CanonicalIterator(java.lang.String source)
source
- string to get results forpublic java.lang.String getSource()
public void reset()
public java.lang.String next()
public void setSource(java.lang.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.@Deprecated public static void permute(java.lang.String source, boolean skipZeros, java.util.Set<java.lang.String> 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 toCopyright © 2016 Unicode, Inc. and others.