Instance Propertyswift 6.0.3Swift
debugDescription
var debugDescription: String { get }
var debugDescription: String { get }
import Swift
@frozen struct UTF16View
A view of a string’s contents as a collection of UTF-16 code units.
@frozen struct String
A Unicode string value that is a collection of characters.
var count: Int { get }
var customMirror: Mirror { get }
Returns a mirror that reflects the UTF-16 view of a string.
var description: String { get }
var endIndex: String.UTF16View.Index { get }
The “past the end” position—that is, the position one greater than the last valid subscript argument.
var startIndex: String.UTF16View.Index { get }
The position of the first code unit if the String
is nonempty; identical to endIndex
otherwise.
subscript(r: Range<String.UTF16View.Index>) -> Substring.UTF16View { get }
subscript(idx: String.UTF16View.Index) -> UTF16.CodeUnit { get }
Accesses the code unit at the given position.
func distance(from start: String.UTF16View.Index, to end: String.UTF16View.Index) -> Int
func index(_ i: String.UTF16View.Index, offsetBy n: Int) -> String.UTF16View.Index
func index(_ i: String.UTF16View.Index, offsetBy n: Int, limitedBy limit: String.UTF16View.Index) -> String.UTF16View.Index?
func index(after idx: String.UTF16View.Index) -> String.UTF16View.Index
func index(before idx: String.UTF16View.Index) -> String.UTF16View.Index
func makeIterator() -> String.UTF16View.Iterator
@frozen struct Iterator
typealias Index = String.Index
typealias SubSequence = Substring.UTF16View
var customPlaygroundQuickLook: _PlaygroundQuickLook { get }