Language

UnicodeSetSpanner.CountMethod.MinElements Property

Definition

Use the smallest number of elements in the spanned range for counting and modification, based on the UnicodeSet.SpanCondition.

[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 uses the minimum number of set elements needed for the selected span.

Attributes

Remarks

Use the smallest number of elements in the spanned range for counting and modification, based on the UnicodeSet.SpanCondition. If the set has no strings, this will be the same as 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