Instance Methodswift 6.0.3FoundationEssentials
index(_:offsetByUnicodeScalars:)
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
func index(_ i: AttributedString.Index, offsetByUnicodeScalars distance: Int) -> AttributedString.Index
func index(_ i: AttributedString.Index, offsetByUnicodeScalars distance: Int) -> AttributedString.Index
s20FoundationEssentials24AttributedStringProtocolPAAE5index_22offsetByUnicodeScalarsAA0cD0V5IndexVAI_SitF
What are these?4CNP3
import FoundationEssentials
@dynamicMemberLookup protocol AttributedStringProtocol : AttributedStringAttributeMutation, CustomStringConvertible, Hashable, Sendable
@dynamicMemberLookup struct AttributedString
struct Index
@frozen struct Int
A signed integer value type.
var description: String { get }
static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
func hash(into hasher: inout Hasher)
func index(_ i: AttributedString.Index, offsetByCharacters distance: Int) -> AttributedString.Index
func index(_ i: AttributedString.Index, offsetByRuns distance: Int) -> AttributedString.Index
func index(afterCharacter i: AttributedString.Index) -> AttributedString.Index
func index(afterRun i: AttributedString.Index) -> AttributedString.Index
func index(afterUnicodeScalar i: AttributedString.Index) -> AttributedString.Index
func index(beforeCharacter i: AttributedString.Index) -> AttributedString.Index
func index(beforeRun i: AttributedString.Index) -> AttributedString.Index
func index(beforeUnicodeScalar i: AttributedString.Index) -> AttributedString.Index
func mergingAttributes(_ attributes: AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy = .keepNew) -> AttributedString
func range<T>(of stringToFind: T, options: String.CompareOptions = [], locale: Locale? = nil) -> Range<AttributedString.Index>? where T : StringProtocol
func replacingAttributes(_ attributes: AttributeContainer, with others: AttributeContainer) -> AttributedString
func settingAttributes(_ attributes: AttributeContainer) -> AttributedString