Structureswift 6.0.1FoundationEssentials
AttributedSubstring
- iOS
- 15+
- macOS
- 12+
- tvOS
- 15+
- watchOS
- 8+
@dynamicMemberLookup struct AttributedSubstring
@dynamicMemberLookup struct AttributedSubstring
import FoundationEssentials
protocol AttributedStringAttributeMutation
@dynamicMemberLookup protocol AttributedStringProtocol : AttributedStringAttributeMutation, CustomStringConvertible, Hashable, Sendable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init()
var base: AttributedString { get }
var characters: AttributedString.CharacterView { get }
var description: String { get }
var endIndex: AttributedString.Index { get }
var runs: AttributedString.Runs { get }
var startIndex: AttributedString.Index { get }
var unicodeScalars: AttributedString.UnicodeScalarView { get }
@preconcurrency subscript<K>(_: K.Type) -> K.Value? where K : AttributedStringKey, K.Value : Sendable { get set }
subscript(bounds: some RangeExpression<AttributedString.Index>) -> AttributedSubstring { get }
@preconcurrency subscript<K>(dynamicMember keyPath: KeyPath<AttributeDynamicLookup, K>) -> K.Value? where K : AttributedStringKey, K.Value : Sendable { get set }
subscript<S>(dynamicMember keyPath: KeyPath<AttributeScopes, S.Type>) -> ScopedAttributeContainer<S> where S : AttributeScope { get set }
static func == (lhs: AttributedSubstring, rhs: AttributedSubstring) -> Bool
mutating func mergeAttributes(_ attributes: AttributeContainer, mergePolicy: AttributedString.AttributeMergePolicy = .keepNew)
mutating func replaceAttributes(_ attributes: AttributeContainer, with others: AttributeContainer)
mutating func setAttributes(_ attributes: AttributeContainer)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
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(_ i: AttributedString.Index, offsetByUnicodeScalars 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