func mergeAttributes (AttributeContainer, mergePolicy : AttributedString.AttributeMergePolicy)
Merges the attributed string’s attributes with those in a specified attribute container.
func replaceAttributes (AttributeContainer, with: AttributeContainer)
Replaces the attributed string’s attributes with those in a specified attribute container.
属性付き文字列のもつ属性いくつかをある指定された属性コンテナの中のそれらと置き換えます。