BreakIterator.Next Method
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.
Overloads
Next() |
Advances the iterator forward one boundary. |
Next(Int32) |
Move the iterator by the specified number of steps in the text. |
Next()
Advances the iterator forward one boundary.
[Android.Runtime.Register("next", "()I", "GetNextHandler", ApiSince=24)]
public abstract int Next ();
[<Android.Runtime.Register("next", "()I", "GetNextHandler", ApiSince=24)>]
abstract member Next : unit -> int
Returns
The position of the first boundary position following the iteration position.
- Attributes
Remarks
Advances the iterator forward one boundary. The current iteration position is updated to point to the next boundary position after the current position, and this is also the value that is returned. If the current position is equal to the value returned by last(), or to DONE, this function returns DONE and sets the current position to DONE.
Java documentation for android.icu.text.BreakIterator.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
Next(Int32)
Move the iterator by the specified number of steps in the text.
[Android.Runtime.Register("next", "(I)I", "GetNext_IHandler", ApiSince=24)]
public abstract int Next (int n);
[<Android.Runtime.Register("next", "(I)I", "GetNext_IHandler", ApiSince=24)>]
abstract member Next : int -> int
Parameters
- n
- Int32
The number of boundaries to advance over (if positive, moves forward; if negative, moves backwards).
Returns
The position of the boundary n boundaries from the current iteration position, or DONE if moving n boundaries causes the iterator to advance off either end of the text.
- Attributes
Remarks
Move the iterator by the specified number of steps in the text. A positive number moves the iterator forward; a negative number moves the iterator backwards. If this causes the iterator to move off either end of the text, this function returns DONE; otherwise, this function returns the position of the appropriate boundary. Calling this function is equivalent to calling next() or previous() n times.
Java documentation for android.icu.text.BreakIterator.next(int)
.
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.