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.
A string’s “past the end” position—that is, the position one greater than the last valid subscript argument.
var endIndex: String.Index { get }In an empty string, endIndex is equal to startIndex.