Returns the Unicode character at a specified location in a string.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The string from which the Unicode character is obtained.
The position of the Unicode character in the CFString.
A Unicode character.
This function is typically called in a loop to fetch the Unicode characters of a string in sequence or to fetch a character at a known position (first or last, for example). Using it in a loop can be inefficient, especially with longer strings, so consider the
CFString function or the in-line buffer functions (
CFString) as alternatives.