index(after:)
Returns the position immediately after the given index.
Declaration
func index(after i: Substring.UTF8View.Index) -> Substring.UTF8View.IndexParameters
- i:
A valid index of the collection.
imust be less thanendIndex.
Return Value
The index value immediately after i.
Discussion
The successor of an index must be well defined. For an index i into a collection c, calling c.index(after: i) returns the same index every time.