Function

CFAttributedStringGetString(_:)

Returns the string for an attributed string.

Declaration

func CFAttributedStringGetString(_ aStr: CFAttributedString!) -> CFString!

Parameters

aStr

The attributed string to examine.

Return Value

An immutable string containing the characters from aStr, or NULL if there was a problem creating the object. Ownership follows the The Get Rule.

Discussion

For performance reasons, the string returned will often be the backing store of the attributed string, and it might therefore change if the attributed string is edited. However, this is an implementation detail, and you should not rely on this behavior.

See Also

Creating a CFAttributedString