Class enabling iteration of the codepoints and their names.
Result of each iteration contains a valid codepoint that has valid name.
See UCharacter.getNameIterator() for an example of use.
| Modifier and Type | Field and Description |
|---|---|
| private static char[] | |
| private static char[] | GROUP_OFFSETS_
Group use |
| private int | m_algorithmIndex_
Algorithm index |
| private int | m_choice_
Name choice |
| private int | m_current_
Current codepoint |
| private int | m_groupIndex_
Group index |
| private int | m_limit_
End + 1 iteration range |
| private UCharacterName | m_name_
Name data |
| private int | m_start_
Start iteration range |
| Access | Constructor and Description |
|---|---|
| protected | UCharacterNameIterator(UCharacterName
name data name, int name choice from the class
com.ibm.icu.lang.UCharacterNameChoice choice)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | Returns: false if a codepoint with a name is found and we can bail from further iteration, true to continue on with the iteration (this will always be false for valid codepoints)stores the result codepoint and name result,last codepoint + 1 in range to search limit)Iterate extended names. |
| private boolean | Returns: false if a codepoint with a name is found in group and we can bail from further iteration, true to continue on with the iterationstores the result codepoint and name result,last codepoint + 1 in range to search limit)Group name iteration, iterate all the names in the current 32-group and returns the first codepoint that has a valid name. |
| private boolean | Returns: false if a codepoint with a name is found in group and we can bail from further iteration, true to continue on with the iterationstores the result codepoint and name result,last codepoint + 1 in range to search limit)Group name iteration, iterate all the names in the current 32-group and returns the first codepoint that has a valid name. |
| public boolean | Returns: true if we are not at the end of the iteration, false otherwise.for storing the result codepoint and name elementImplements com. Gets the next result for this iteration and returns true if we are not at the end of the iteration, false otherwise. |
| public void | reset()
Implements com. Resets the iterator to start iterating from the integer index UCharacter.MIN_VALUE or X if a setRange(X, Y) has been called previously. |
| public void | setRange(int
first integer in range to iterate start, int 1 integer after the last integer in range limit)Implements com. Restricts the range of integers to iterate and resets the iteration to begin at the index argument start. |
| GROUP_LENGTHS_ | back to summary |
|---|---|
| private static char[] GROUP_LENGTHS_ | |
| GROUP_OFFSETS_ | back to summary |
|---|---|
| private static char[] GROUP_OFFSETS_ Group use | |
| m_algorithmIndex_ | back to summary |
|---|---|
| private int m_algorithmIndex_ Algorithm index | |
| m_choice_ | back to summary |
|---|---|
| private int m_choice_ Name choice | |
| m_current_ | back to summary |
|---|---|
| private int m_current_ Current codepoint | |
| m_groupIndex_ | back to summary |
|---|---|
| private int m_groupIndex_ Group index | |
| m_limit_ | back to summary |
|---|---|
| private int m_limit_ End + 1 iteration range | |
| m_name_ | back to summary |
|---|---|
| private UCharacterName m_name_ Name data | |
| m_start_ | back to summary |
|---|---|
| private int m_start_ Start iteration range | |
| UCharacterNameIterator | back to summary |
|---|---|
| protected UCharacterNameIterator(UCharacterName name, int choice) Constructor
| |
| iterateExtended | back to summary |
|---|---|
| private boolean iterateExtended(ValueIterator. Iterate extended names.
| |
| iterateGroup | back to summary |
|---|---|
| private boolean iterateGroup(ValueIterator. Group name iteration, iterate all the names in the current 32-group and returns the first codepoint that has a valid name.
| |
| iterateSingleGroup | back to summary |
|---|---|
| private boolean iterateSingleGroup(ValueIterator. Group name iteration, iterate all the names in the current 32-group and returns the first codepoint that has a valid name.
| |
| next | back to summary |
|---|---|
| public boolean next(ValueIterator. Implements com. Gets the next result for this iteration and returns true if we are not at the end of the iteration, false otherwise. If the return boolean is a false, the contents of elements will not be updated.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements com. Resets the iterator to start iterating from the integer index UCharacter.MIN_VALUE or X if a setRange(X, Y) has been called previously.
| |
| setRange | back to summary |
|---|---|
| public void setRange(int start, int limit) Implements com. Restricts the range of integers to iterate and resets the iteration to begin at the index argument start. If setRange(start, end) is not performed before next(element) is called, the iteration will start from the integer index UCharacter.MIN_VALUE and end at UCharacter.MAX_VALUE. If this range is set outside the range of UCharacter.MIN_VALUE and UCharacter.MAX_VALUE, next(element) will always return false.
| |