Returns the position immediately before the given index.
SDK
Framework
On This Page
func index(before i: String.UTF8View.Index) -> String.UTF8View.Index
i
A valid index of the collection. i must be greater than startIndex.
startIndex
The index value immediately before i.
BidirectionalCollection