Instance Methodswift 6.0.3FoundationEssentials
index(_:offsetBy:limitedBy:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
func index(_ i: AttributedString.Index, offsetBy distance: Int, limitedBy limit: AttributedString.Index) -> AttributedString.Index?
func index(_ i: AttributedString.Index, offsetBy distance: Int, limitedBy limit: AttributedString.Index) -> AttributedString.Index?
s20FoundationEssentials16AttributedStringV17UnicodeScalarViewV5index_8offsetBy07limitedJ0AC5IndexVSgAJ_SiAJtF
What are these?4KK63
import FoundationEssentials
struct UnicodeScalarView
@dynamicMemberLookup struct AttributedString
struct Index
@frozen struct Int
A signed integer value type.
init()
var count: Int { get }
var endIndex: AttributedString.Index { get }
var startIndex: AttributedString.Index { get }
subscript(index: AttributedString.Index) -> UnicodeScalar { get }
subscript(bounds: Range<AttributedString.Index>) -> Slice<AttributedString.UnicodeScalarView> { get }
func distance(from start: AttributedString.Index, to end: AttributedString.Index) -> Int
func index(_ i: AttributedString.Index, offsetBy distance: Int) -> AttributedString.Index
func index(after i: AttributedString.Index) -> AttributedString.Index
func index(before i: AttributedString.Index) -> AttributedString.Index
mutating func replaceSubrange(_ subrange: Range<AttributedString.UnicodeScalarView.Index>, with newElements: some Collection<Unicode.Scalar>)
typealias Element = UnicodeScalar
typealias Index = AttributedString.Index