Contents

endIndex

A string’s “past the end” position—that is, the position one greater than the last valid subscript argument.

Declaration

var endIndex: String.Index { get }

Discussion

In an empty string, endIndex is equal to startIndex.

See Also

Manipulating Indices