次の方法で共有


UnicodeSetSpanner.Trim Method

Definition

Overloads

Trim(String)

Returns a trimmed sequence (using CharSequence.

Trim(String, UnicodeSetSpanner+TrimOption)
Trim(String, UnicodeSetSpanner+TrimOption, UnicodeSet+SpanCondition)

Trim(String)

Returns a trimmed sequence (using CharSequence.

public string? Trim (string? sequence);
member this.Trim : string -> string

Parameters

sequence
String

the sequence to trim

Returns

a subsequence

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

Trim(String, UnicodeSetSpanner+TrimOption)

public string? Trim (string? sequence, Android.Icu.Text.UnicodeSetSpanner.TrimOption? trimOption);
member this.Trim : string * Android.Icu.Text.UnicodeSetSpanner.TrimOption -> string

Parameters

sequence
String

Returns

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

Trim(String, UnicodeSetSpanner+TrimOption, UnicodeSet+SpanCondition)

public string? Trim (string? sequence, Android.Icu.Text.UnicodeSetSpanner.TrimOption? trimOption, Android.Icu.Text.UnicodeSet.SpanCondition? spanCondition);
member this.Trim : string * Android.Icu.Text.UnicodeSetSpanner.TrimOption * Android.Icu.Text.UnicodeSet.SpanCondition -> string

Parameters

sequence
String
spanCondition
UnicodeSet.SpanCondition

Returns

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