index(before:)
Returns the position immediately before the given index.
Declaration
func index(before i: Substring.UnicodeScalarView.Index) -> Substring.UnicodeScalarView.IndexParameters
- i:
A valid index of the collection.
imust be greater thanstartIndex.
Return Value
The index value immediately before i.