Copies a range of the Unicode characters from a string to a user-provided buffer.
- iOS 2.0+
- macOS 10.0+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The string from which the characters are to be obtained.
The range of characters to copy. The specified range must not exceed the length of the string.
Unibuffer of length
rangethat you have allocated on the stack or heap. On return, the buffer contains the requested Unicode characters.
Use this function to obtain some or all of the Unicode characters represented by a CFString object. If this operation involves a large number of characters, the function call can be expensive in terms of memory. Instead you might want to consider using the in-line buffer functions
CFString to extract the characters incrementally.