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