UnicodeSet.Span 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.
Overloads
| Name | Description |
|---|---|
| Span(ICharSequence, UnicodeSet+SpanCondition) |
Span a string using this UnicodeSet. |
| Span(String, UnicodeSet+SpanCondition) |
Finds the end of the initial span selected by this set and the spanning condition. |
| Span(ICharSequence, Int32, UnicodeSet+SpanCondition) |
Span a string using this UnicodeSet. |
| Span(String, Int32, UnicodeSet+SpanCondition) |
Finds the end of a selected span starting at the supplied text index. |
Span(ICharSequence, UnicodeSet+SpanCondition)
Span a string using this UnicodeSet.
[Android.Runtime.Register("span", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpan_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int Span(Java.Lang.ICharSequence? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("span", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpan_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member Span : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.Span : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
the length of the span
- Attributes
Remarks
Span a string using this UnicodeSet. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.span.
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
Span(String, UnicodeSet+SpanCondition)
Finds the end of the initial span selected by this set and the spanning condition.
public int Span(string? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.Span : string * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
The managed string whose initial span is examined.
- spanCondition
- UnicodeSet.SpanCondition
Selects contained-element spanning, noncontained text, or greedy element matching.
Returns
The exclusive UTF-16 index at the end of the selected span.
Remarks
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
Span(ICharSequence, Int32, UnicodeSet+SpanCondition)
Span a string using this UnicodeSet.
[Android.Runtime.Register("span", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpan_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int Span(Java.Lang.ICharSequence? s, int start, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("span", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpan_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member Span : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.Span : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- start
- Int32
The start index that the span begins
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
the string index which ends the span (i.e. exclusive)
- Attributes
Remarks
Span a string using this UnicodeSet. If the start index is less than 0, span will start from 0. If the start index is greater than the string length, span returns the string length. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.span.
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
Span(String, Int32, UnicodeSet+SpanCondition)
Finds the end of a selected span starting at the supplied text index.
public int Span(string? s, int start, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.Span : string * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
The managed string in which to examine a span.
- start
- Int32
The UTF-16 starting index, treated as zero if negative and as the string length if past the end.
- spanCondition
- UnicodeSet.SpanCondition
Selects contained-element spanning, noncontained text, or greedy element matching.
Returns
The exclusive UTF-16 index at the end of the selected span.
Remarks
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.