Contents

startIndex

The position of the first character in a nonempty string.

Declaration

var startIndex: String.Index { get }

Discussion

In an empty string, startIndex is equal to endIndex.

See Also

Manipulating Indices