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", "(ZILjava/lang/String;II)Z", "")]
public bool RegionMatches (bool ignoreCase, int thisStart, string string, int start, int length)

Parameters

ignoreCase
specifies if case should be ignored (use Java.Text.Collator instead for non-ASCII case insensitivity).
thisStart
the start offset in this string.
string
the other string.
start
the start offset in string.
length
the number of chars to compare.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif string is null.

Remarks

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

If ignoreCase is true, case is ignored during the comparison. The strings are compared one char at a time. This is not suitable for case-insensitive string comparison for all locales. Use a Java.Text.Collator instead.

[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