CharArrayBuffer.IndexOf Method

Definition

Overloads

Name Description
IndexOf(Int32)

Finds the first occurrence of a character.

IndexOf(Int32, Int32, Int32)

Finds the first occurrence of a character within a range.

IndexOf(Int32)

Finds the first occurrence of a character.

[Android.Runtime.Register("indexOf", "(I)I", "")]
public int IndexOf(int ch);
[<Android.Runtime.Register("indexOf", "(I)I", "")>]
member this.IndexOf : int -> int

Parameters

ch
Int32

The character value to find.

Returns

The index of the first occurrence, or -1 if the character is not found.

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

IndexOf(Int32, Int32, Int32)

Finds the first occurrence of a character within a range.

[Android.Runtime.Register("indexOf", "(III)I", "")]
public int IndexOf(int ch, int beginIndex, int endIndex);
[<Android.Runtime.Register("indexOf", "(III)I", "")>]
member this.IndexOf : int * int * int -> int

Parameters

ch
Int32

The character value to find.

beginIndex
Int32

The inclusive index at which to begin searching.

endIndex
Int32

The exclusive index at which to end searching.

Returns

The index of the first occurrence, or -1 if the character is not found.

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