UnicodeSetSpanner.TrimFormatted 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
TrimFormatted(ICharSequence, UnicodeSetSpanner+TrimOption, UnicodeSet+SpanCondition) | |
TrimFormatted(ICharSequence) |
Returns a trimmed sequence (using CharSequence. |
TrimFormatted(ICharSequence, UnicodeSetSpanner+TrimOption) |
TrimFormatted(ICharSequence, UnicodeSetSpanner+TrimOption, UnicodeSet+SpanCondition)
[Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$TrimOption;Landroid/icu/text/UnicodeSet$SpanCondition;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_TrimOption_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)]
public virtual Java.Lang.ICharSequence? TrimFormatted (Java.Lang.ICharSequence? sequence, Android.Icu.Text.UnicodeSetSpanner.TrimOption? trimOption, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
[<Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$TrimOption;Landroid/icu/text/UnicodeSet$SpanCondition;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_TrimOption_Landroid_icu_text_UnicodeSet_SpanCondition_Handler", ApiSince=24)>]
abstract member TrimFormatted : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.TrimOption * Android.Icu.Text.UnicodeSet.SpanCondition -> Java.Lang.ICharSequence
override this.TrimFormatted : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.TrimOption * Android.Icu.Text.UnicodeSet.SpanCondition -> Java.Lang.ICharSequence
Parameters
- sequence
- ICharSequence
- trimOption
- UnicodeSetSpanner.TrimOption
- spanCondition
- UnicodeSet.SpanCondition
Returns
- Attributes
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
TrimFormatted(ICharSequence)
Returns a trimmed sequence (using CharSequence.
[Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Handler", ApiSince=24)]
public virtual Java.Lang.ICharSequence? TrimFormatted (Java.Lang.ICharSequence? sequence);
[<Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member TrimFormatted : Java.Lang.ICharSequence -> Java.Lang.ICharSequence
override this.TrimFormatted : Java.Lang.ICharSequence -> Java.Lang.ICharSequence
Parameters
- sequence
- ICharSequence
the sequence to trim
Returns
a subsequence
- Attributes
Remarks
Returns a trimmed sequence (using CharSequence.subsequence()), that omits matching elements at the start and end of the string, using TrimOption.BOTH and SpanCondition.SIMPLE. For example:
{@code
new UnicodeSet("[ab]").trim("abacatbab")}
... returns "cat"
.
Java documentation for android.icu.text.UnicodeSetSpanner.trim(java.lang.CharSequence)
.
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
TrimFormatted(ICharSequence, UnicodeSetSpanner+TrimOption)
[Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$TrimOption;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_TrimOption_Handler", ApiSince=24)]
public virtual Java.Lang.ICharSequence? TrimFormatted (Java.Lang.ICharSequence? sequence, Android.Icu.Text.UnicodeSetSpanner.TrimOption? trimOption);
[<Android.Runtime.Register("trim", "(Ljava/lang/CharSequence;Landroid/icu/text/UnicodeSetSpanner$TrimOption;)Ljava/lang/CharSequence;", "GetTrim_Ljava_lang_CharSequence_Landroid_icu_text_UnicodeSetSpanner_TrimOption_Handler", ApiSince=24)>]
abstract member TrimFormatted : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.TrimOption -> Java.Lang.ICharSequence
override this.TrimFormatted : Java.Lang.ICharSequence * Android.Icu.Text.UnicodeSetSpanner.TrimOption -> Java.Lang.ICharSequence
Parameters
- sequence
- ICharSequence
- trimOption
- UnicodeSetSpanner.TrimOption
Returns
- Attributes
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.