Type Aliasswift 6.0.3Swift
Index
typealias Index = String.UTF8View.Index
typealias Index = String.UTF8View.Index
import Swift
@frozen struct UTF8View
@frozen struct Substring
A slice of a string.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct UTF8View
A view of a string’s contents as a collection of UTF-8 code units.
typealias Index = String.Index
var endIndex: Substring.UTF8View.Index { get }
var indices: Substring.UTF8View.Indices { get }
var startIndex: Substring.UTF8View.Index { get }
subscript(r: Range<Substring.UTF8View.Index>) -> Substring.UTF8View { get }
subscript(index: Substring.UTF8View.Index) -> Substring.UTF8View.Element { get }
func distance(from start: Substring.UTF8View.Index, to end: Substring.UTF8View.Index) -> Int
func formIndex(after i: inout Substring.UTF8View.Index)
func formIndex(before i: inout Substring.UTF8View.Index)
func index(_ i: Substring.UTF8View.Index, offsetBy n: Int) -> Substring.UTF8View.Index
func index(_ i: Substring.UTF8View.Index, offsetBy n: Int, limitedBy limit: Substring.UTF8View.Index) -> Substring.UTF8View.Index?
func index(after i: Substring.UTF8View.Index) -> Substring.UTF8View.Index
func index(before i: Substring.UTF8View.Index) -> Substring.UTF8View.Index
func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<Substring.UTF8View.Element>) throws -> R) rethrows -> R?
typealias Element = String.UTF8View.Element
typealias Indices = String.UTF8View.Indices
typealias SubSequence = Substring.UTF8View