substring
Returns a substring specified by the given range of indices.
inline fun CharSequence.substring(startIndex: Int, endIndex: Int = length): String
Content copied to clipboard
Returns a substring of chars from a range of this char sequence starting at the startIndex and ending right before the endIndex.
Parameters
start Index
the start index (inclusive).
end Index
the end index (exclusive). If not specified, the length of the char sequence is used.
Returns a substring of chars at indices from the specified range of this char sequence.
Returns a substring of this string that starts at the specified startIndex and continues to the end of the string.
Returns the substring of this string starting at the startIndex and ending right before the endIndex.
Parameters
start Index
the start index (inclusive).
end Index
the end index (exclusive).