UCharacter.NameIterator Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
<strong>[icu]</strong>
public static Android.Icu.Util.IValueIterator? NameIterator { [Android.Runtime.Register("getNameIterator", "()Landroid/icu/util/ValueIterator;", "", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getNameIterator", "()Landroid/icu/util/ValueIterator;", "", ApiSince=24)>]
static member NameIterator : Android.Icu.Util.IValueIterator
Property Value
an iterator
- Attributes
Remarks
<strong>[icu]</strong>
Returns an iterator for character names, iterating over codepoints.
This API only gets the iterator for the modern, most up-to-date Unicode names. For older 1.0 Unicode names use get1_0NameIterator() or for extended names use getExtendedNameIterator().
Example of use:<br>
ValueIterator iterator = UCharacter.getNameIterator();
ValueIterator.Element element = new ValueIterator.Element();
while (iterator.next(element)) {
System.out.println("Codepoint \\u" +
Integer.toHexString(element.codepoint) +
" has the name " + (String)element.value);
}
The maximal range which the name iterator iterates is from UCharacter.MIN_VALUE to UCharacter.MAX_VALUE.
Java documentation for android.icu.lang.UCharacter.getNameIterator()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.