Copies the character contents of a CFString object to a local Pascal string buffer after converting the characters to a requested encoding.
- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
- Core Foundation
The string to examine.
The Pascal string buffer into which to copy the
the. The buffer must be at least
bufferbytes in length. On return, contains the converted characters. If there is an error in conversion, the buffer contains only partial results.
The length of the local
bufferin bytes (accounting for the length byte).
The string encoding to which the character contents of
theshould be converted.
true if the operation succeeds or
false if the conversion fails or the provided buffer is too small.
This function is useful when you need your own copy of a CFString object's character data as a Pascal string. You can also call it as a “backup” operation when a prior call to the
CFString function fails.