getSegment

fun getSegment(index: Int): String(source)

Deprecated

Renamed to get(index)

Replace with

get(index)

Returns the path segment at the specified index.

Return

The segment string at the given position.

Parameters

index

The zero-based index of the segment to retrieve.

Throws

if the index is out of range.