Android Guides | Samples

Java.Lang.String.RegionMatches Method

Returns true if the given subsequence of the given string matches this string starting at the given offset.

Syntax

[Android.Runtime.Register("regionMatches", "(ILjava/lang/String;II)Z", "")]
public Boolean RegionMatches (Int32 thisStart, String string, Int32 start, Int32 length)

Parameters

thisStart
the start offset in this string.
string
the other string.
start
the start offset in string.
length
the number of chars to compare.

Exceptions

TypeReason
NullPointerExceptionif string is null.

Remarks

Returns true if the given subsequence of the given string matches this string starting at the given offset.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1