APIdia Launch Partner
Top Fields Constructors Methods
sun.text

public final Class ComposedCharIter

extends Object
Class Inheritance
Imports
jdk.internal.icu.impl.NormalizerImpl, jdk.internal.icu.text.NormalizerBase

Field Summary

Modifier and TypeField and Description
private static int[]
private int
private static int
private static String[]
public static final int
DONE

Constant that indicates the iteration has completed.

Constructor Summary

AccessConstructor and Description
public
ComposedCharIter()

Construct a new ComposedCharIter.

Method Summary

Modifier and TypeMethod and Description
public String
decomposition()

Returns the Unicode decomposition of the current character.

public int
next()

Returns the next precomposed Unicode character.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsback to summary
private static int[] chars
curCharback to summary
private int curChar
decompNumback to summary
private static int decompNum
decompsback to summary
private static String[] decomps
DONEback to summary
public static final int DONE

Constant that indicates the iteration has completed. next returns this value when there are no more composed characters over which to iterate.

Constructor Detail

ComposedCharIterback to summary
public ComposedCharIter()

Construct a new ComposedCharIter. The iterator will return all Unicode characters with canonical decompositions, excluding Korean Hangul characters.

Method Detail

decompositionback to summary
public String decomposition()

Returns the Unicode decomposition of the current character. This method returns the decomposition of the precomposed character most recently returned by next. The resulting decomposition is affected by the settings of the options passed to the constructor.

nextback to summary
public int next()

Returns the next precomposed Unicode character. Repeated calls to next return all of the precomposed characters defined by Unicode, in ascending order. After all precomposed characters have been returned, hasNext will return false and further calls to next will return DONE.