Instance Propertyswift 6.0.3Swift
description
var description: String { get }
var description: String { get }
import Swift
@frozen struct UTF8View
A view of a string’s contents as a collection of UTF-8 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-8 view of a string.
var debugDescription: String { get }
var endIndex: String.UTF8View.Index { get }
The “past the end” position—that is, the position one greater than the last valid subscript argument.
var startIndex: String.UTF8View.Index { get }
The position of the first code unit if the UTF-8 view is nonempty.
subscript(r: Range<String.UTF8View.Index>) -> String.UTF8View.SubSequence { get }
subscript(i: String.UTF8View.Index) -> UTF8.CodeUnit { get }
Accesses the code unit at the given position.
func distance(from i: String.UTF8View.Index, to j: String.UTF8View.Index) -> Int
func index(_ i: String.UTF8View.Index, offsetBy n: Int) -> String.UTF8View.Index
func index(_ i: String.UTF8View.Index, offsetBy n: Int, limitedBy limit: String.UTF8View.Index) -> String.UTF8View.Index?
func index(after i: String.UTF8View.Index) -> String.UTF8View.Index
Returns the next consecutive position after i
.
func index(before i: String.UTF8View.Index) -> String.UTF8View.Index
func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<String.UTF8View.Element>) throws -> R) rethrows -> R?
typealias Element = UTF8.CodeUnit
typealias Index = String.Index
typealias SubSequence = Substring.UTF8View
var customPlaygroundQuickLook: _PlaygroundQuickLook { get }