regionMatches

expect fun CharSequence.regionMatches(thisOffset: Int, other: CharSequence, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Returns true if the specified range in this char sequence is equal to the specified range in another char sequence.

Since Kotlin

1.0

Parameters

thisOffset

the start offset in this char sequence of the substring to compare.

other

the string against a substring of which the comparison is performed.

otherOffset

the start offset in the other char sequence of the substring to compare.

length

the length of the substring to compare.

actual fun CharSequence.regionMatches(thisOffset: Int, other: CharSequence, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Since Kotlin

1.1
fun String.regionMatches(thisOffset: Int, other: String, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Returns true if the specified range in this string is equal to the specified range in another string.

Since Kotlin

1.0

Parameters

thisOffset

the start offset in this string of the substring to compare.

other

the string against a substring of which the comparison is performed.

otherOffset

the start offset in the other string of the substring to compare.

length

the length of the substring to compare.


actual fun CharSequence.regionMatches(thisOffset: Int, other: CharSequence, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Returns true if the specified range in this char sequence is equal to the specified range in another char sequence.

Since Kotlin

1.0

Parameters

thisOffset

the start offset in this char sequence of the substring to compare.

other

the string against a substring of which the comparison is performed.

otherOffset

the start offset in the other char sequence of the substring to compare.

length

the length of the substring to compare.

fun String.regionMatches(thisOffset: Int, other: String, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Returns true if the specified range in this string is equal to the specified range in another string.

Since Kotlin

1.3

Parameters

thisOffset

the start offset in this string of the substring to compare.

other

the string against a substring of which the comparison is performed.

otherOffset

the start offset in the other string of the substring to compare.

length

the length of the substring to compare.


actual fun CharSequence.regionMatches(thisOffset: Int, other: CharSequence, otherOffset: Int, length: Int, ignoreCase: Boolean = false): Boolean(source)

Returns true if the specified range in this char sequence is equal to the specified range in another char sequence.

Since Kotlin

1.3

Parameters

thisOffset

the start offset in this char sequence of the substring to compare.

other

the string against a substring of which the comparison is performed.

otherOffset

the start offset in the other char sequence of the substring to compare.

length

the length of the substring to compare.