Instance Propertyswift 6.1.2Swift
debugDescription
var debugDescription: String { get }var debugDescription: String { get }import Swift@frozen struct UTF8ViewA view of a string’s contents as a collection of UTF-8 code units.
@frozen struct StringA 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 description: 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.CodeUnittypealias Index = String.Indextypealias SubSequence = Substring.UTF8Viewvar customPlaygroundQuickLook: _PlaygroundQuickLook { get }