Partager via


CollationElementIterator.Next Method

Definition

Get the next collation element in the source string.

[Android.Runtime.Register("next", "()I", "", ApiSince=24)]
public int Next ();
[<Android.Runtime.Register("next", "()I", "", ApiSince=24)>]
member this.Next : unit -> int

Returns

the next collation element or NULLORDER if the end of the iteration has been reached.

Attributes

Remarks

Get the next collation element in the source string.

This iterator iterates over a sequence of collation elements that were built from the string. Because there isn't necessarily a one-to-one mapping from characters to collation elements, this doesn't mean the same thing as "return the collation element [or ordering priority] of the next character in the string".

This function returns the collation element that the iterator is currently pointing to, and then updates the internal pointer to point to the next element.

Java documentation for android.icu.text.CollationElementIterator.next().

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.

Applies to