Instance Propertyswift 6.2.4Swift
count
var count: Int { get }var count: Int { get }import Swift@frozen struct UTF16ViewA view of a string’s contents as a collection of UTF-16 code units.
@frozen struct StringA Unicode string value that is a collection of characters.
@frozen struct IntA signed integer value type.
var customMirror: Mirror { get }Returns a mirror that reflects the UTF-16 view of a string.
var debugDescription: String { get }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 Iteratortypealias Index = String.Indextypealias SubSequence = Substring.UTF16Viewvar customPlaygroundQuickLook: _PlaygroundQuickLook { get }