Język

UnicodeSet.SpanCondition.Simple Property

Definition

Continues a span() while there is a set element at the current position.

[Android.Runtime.Register("SIMPLE", ApiSince=24)]
public static Android.Icu.Text.UnicodeSet.SpanCondition Simple { get; }
[<Android.Runtime.Register("SIMPLE", ApiSince=24)>]
static member Simple : Android.Icu.Text.UnicodeSet.SpanCondition

Property Value

Attributes

Remarks

Continues a span() while there is a set element at the current position. Increments by the longest matching element at each position. (For characters only, this is like while contains(current)==true).

When span() returns, the substring between where it started and the position it returned consists only of set elements (characters or strings) that are in the set.

If a set only contains single characters, then this is the same as CONTAINED.

If a set contains strings, then the span will be the longest substring with a match at each position with the longest single set element (character or string).

Use this span condition together with other longest-match algorithms, such as ICU converters (ucnv_getUnicodeSet()).

Android reference for android.icu.text.UnicodeSet.SpanCondition.SIMPLE.

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