Language

TextUtils.GetTrimmedLength Method

Definition

Overloads

Name Description
GetTrimmedLength(ICharSequence)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

GetTrimmedLength(String)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

GetTrimmedLength(ICharSequence)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

[Android.Runtime.Register("getTrimmedLength", "(Ljava/lang/CharSequence;)I", "")]
public static int GetTrimmedLength(Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("getTrimmedLength", "(Ljava/lang/CharSequence;)I", "")>]
static member GetTrimmedLength : Java.Lang.ICharSequence -> int

Parameters

s
ICharSequence

The text whose trimmed length is measured.

Returns

The length after excluding leading and trailing characters with values at most U+0020.

Attributes

Remarks

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

Java documentation for android.text.TextUtils.getTrimmedLength(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

GetTrimmedLength(String)

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

public static int GetTrimmedLength(string? s);
static member GetTrimmedLength : string -> int

Parameters

s
String

The text whose trimmed length is measured.

Returns

The length after excluding leading and trailing characters with values at most U+0020.

Remarks

Returns the length that the specified CharSequence would have if spaces and ASCII control characters were trimmed from the start and end, as by String#trim.

Java documentation for android.text.TextUtils.getTrimmedLength(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