substring

actual inline fun String.substring(startIndex: Int): String(source)

Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.

Since Kotlin

1.0

actual inline fun String.substring(startIndex: Int, endIndex: Int): String(source)

Returns the substring of this string starting at the startIndex and ending right before the endIndex.

Since Kotlin

1.0

Parameters

startIndex

the start index (inclusive).

endIndex

the end index (exclusive).