UnicodeSet.SpanBack 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 |
|---|---|
| SpanBack(String, UnicodeSet+SpanCondition) |
Finds the beginning of the selected span by scanning backward from the text's end. |
| SpanBack(String, Int32, UnicodeSet+SpanCondition) |
Finds the beginning of a selected span by scanning backward from the supplied index. |
| SpanBack(ICharSequence, Int32, UnicodeSet+SpanCondition) |
Span a string backwards (from the fromIndex) using this UnicodeSet. |
| SpanBack(ICharSequence, UnicodeSet+SpanCondition) |
Span a string backwards (from the end) using this UnicodeSet. |
SpanBack(String, UnicodeSet+SpanCondition)
Finds the beginning of the selected span by scanning backward from the text's end.
public int SpanBack(string? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.SpanBack : string * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
The managed string whose final span is examined.
- spanCondition
- UnicodeSet.SpanCondition
Selects contained-element spanning, noncontained text, or greedy element matching.
Returns
The inclusive UTF-16 index at the beginning 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
SpanBack(String, Int32, UnicodeSet+SpanCondition)
Finds the beginning of a selected span by scanning backward from the supplied index.
public int SpanBack(string? s, int fromIndex, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.SpanBack : string * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
- s
- String
The managed string in which to examine a backward span.
- fromIndex
- Int32
The exclusive UTF-16 position from which scanning begins, clamped to the range from zero through the string length.
- spanCondition
- UnicodeSet.SpanCondition
Selects contained-element spanning, noncontained text, or greedy element matching.
Returns
The inclusive UTF-16 index at the beginning 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
SpanBack(ICharSequence, Int32, UnicodeSet+SpanCondition)
Span a string backwards (from the fromIndex) using this UnicodeSet.
[Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int SpanBack(Java.Lang.ICharSequence? s, int fromIndex, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;ILandroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_ILandroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member SpanBack : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.SpanBack : Java.Lang.ICharSequence * int * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- fromIndex
- Int32
The index of the char (exclusive) that the string should be spanned backwards
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
The string index which starts the span (i.e. inclusive).
- Attributes
Remarks
Span a string backwards (from the fromIndex) using this UnicodeSet. If the fromIndex is less than 0, spanBack will return 0. If fromIndex is greater than the string length, spanBack will start from the string length. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.spanBack.
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
SpanBack(ICharSequence, UnicodeSet+SpanCondition)
Span a string backwards (from the end) using this UnicodeSet.
[Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual int SpanBack(Java.Lang.ICharSequence? s, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("spanBack", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSet$SpanCondition;)I", "GetSpanBack_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member SpanBack : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
override this.SpanBack : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSet.SpanCondition -> int
Parameters
The string to be spanned
- spanCondition
- UnicodeSet.SpanCondition
The span condition
Returns
The string index which starts the span (i.e. inclusive).
- Attributes
Remarks
Span a string backwards (from the end) using this UnicodeSet. To replace, count elements, or delete spans, see UnicodeSetSpanner.
Android reference for android.icu.text.UnicodeSet.spanBack.
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.