UnicodeSetIterator.NextRange 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.
Returns the next element in the set, either a code point range or a string.
[Android.Runtime.Register("nextRange", "()Z", "GetNextRangeHandler", ApiSince=24)]
public virtual bool NextRange ();
[<Android.Runtime.Register("nextRange", "()Z", "GetNextRangeHandler", ApiSince=24)>]
abstract member NextRange : unit -> bool
override this.NextRange : unit -> bool
Returns
true if there was another element in the set and this object contains the element.
- Attributes
Remarks
Returns the next element in the set, either a code point range or a string. If there are no more elements in the set, return false. If codepoint == IS_STRING
, the value is a string in the string
field. Otherwise the value is a range of one or more code points from codepoint
to codepointeEnd
inclusive.
The order of iteration is all code points ranges in sorted order, followed by all strings sorted order. Ranges are disjoint and non-contiguous. string
is undefined unless codepoint == IS_STRING
. Do not mix calls to next()
and nextRange()
without calling reset()
between them. The results of doing so are undefined.
Java documentation for android.icu.text.UnicodeSetIterator.nextRange()
.
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.