CFAttributedStringCreateMutableCopy(_:_:_:)
Creates a mutable copy of an attributed string.
Declaration
func CFAttributedStringCreateMutableCopy(_ alloc: CFAllocator!, _ maxLength: CFIndex, _ aStr: CFAttributedString!) -> CFMutableAttributedString!Parameters
- alloc:
The allocator to be used to allocate memory for the new attributed string. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - maxLength:
The limit on the length of the new attributed string. The string starts empty and can grow to this length (it can be shorter).
Pass
0to specify that the maximum length is not limited. If non-0,maxLengthmust be greater than or equal to the length ofaStr. - aStr:
The attributed string to copy.
Return Value
A mutable copy of aStr. Ownership follows the The Create Rule.