Język

UnicodeSet.SpanCondition.Contained Property

Definition

Spans the longest substring that is a concatenation of set elements (characters or strings).

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

Property Value

Attributes

Remarks

Spans the longest substring that is a concatenation of set elements (characters or strings). (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 contains strings, then the span will be the longest substring for which there exists at least one non-overlapping concatenation of set elements (characters or strings). This is equivalent to a POSIX regular expression for (OR of each set element)*. (Java/ICU/Perl regex stops at the first match of an OR.)

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

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