Language

TextUtils.RegionMatches Method

Definition

Overloads

Name Description
RegionMatches(ICharSequence, Int32, ICharSequence, Int32, Int32)

Compares two text ranges character by character.

RegionMatches(String, Int32, String, Int32, Int32)

Compares two text ranges character by character.

RegionMatches(ICharSequence, Int32, ICharSequence, Int32, Int32)

Compares two text ranges character by character.

[Android.Runtime.Register("regionMatches", "(Ljava/lang/CharSequence;ILjava/lang/CharSequence;II)Z", "")]
public static bool RegionMatches(Java.Lang.ICharSequence? one, int toffset, Java.Lang.ICharSequence? two, int ooffset, int len);
[<Android.Runtime.Register("regionMatches", "(Ljava/lang/CharSequence;ILjava/lang/CharSequence;II)Z", "")>]
static member RegionMatches : Java.Lang.ICharSequence * int * Java.Lang.ICharSequence * int * int -> bool

Parameters

one
ICharSequence

The first character sequence to compare.

toffset
Int32

The comparison start index in one.

two
ICharSequence

The second character sequence to compare.

ooffset
Int32

The comparison start index in two.

len
Int32

The number of characters to compare in each sequence.

Returns

true if every compared character is equal; otherwise, false.

Attributes

Remarks

Android reference for android.text.TextUtils.regionMatches.

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

RegionMatches(String, Int32, String, Int32, Int32)

Compares two text ranges character by character.

public static bool RegionMatches(string? one, int toffset, string? two, int ooffset, int len);
static member RegionMatches : string * int * string * int * int -> bool

Parameters

one
String

The first character sequence to compare.

toffset
Int32

The comparison start index in one.

two
String

The second character sequence to compare.

ooffset
Int32

The comparison start index in two.

len
Int32

The number of characters to compare in each sequence.

Returns

true if every compared character is equal; otherwise, false.

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