ClusterMap
public struct ClusterMap : RandomAccessCollection
A collection of the cluster map in a shaping result, represented by UTF-16 code unit indices.
-
The number of elements in the collection.
Declaration
Swift
public var count: Int { get } -
The index to the first element.
Declaration
Swift
public var startIndex: Int { get } -
The index after the last element.
Declaration
Swift
public var endIndex: Int { get } -
Accesses the glyph index at the specified position.
Declaration
Swift
public subscript(index: Int) -> Int { get }Parameters
indexThe position of the element to access.
indexmust be greater than or equal tostartIndexand less thanendIndex.
View on GitHub
Install in Dash
ClusterMap Structure Reference