Language

UnicodeSetSpanner.CountMethod.MinElements Property

Definition

Counts or replaces elements in each selected span according to the span condition.

[Android.Runtime.Register("MIN_ELEMENTS", ApiSince=24)]
public static Android.Icu.Text.UnicodeSetSpanner.CountMethod? MinElements { get; }
[<Android.Runtime.Register("MIN_ELEMENTS", ApiSince=24)>]
static member MinElements : Android.Icu.Text.UnicodeSetSpanner.CountMethod

Property Value

The counting mode that counts elements in the selected span.

Attributes

Remarks

For a contained span, this mode uses the smallest number of set elements that cover the span. For a simple span, it counts the longest matching element at each position. For a noncontained span, it counts code points. If the set has no strings, the count is the number of spanned code points.

For example, in the string "abab" with SpanCondition.SIMPLE: spanning with [ab] will count four MIN_ELEMENTS; spanning with [{ab}] will count two MIN_ELEMENTS; spanning with [ab{ab}] will also count two MIN_ELEMENTS.

Android reference for android.icu.text.UnicodeSetSpanner.CountMethod.MIN_ELEMENTS.

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