Maps a given UTF-32 character to a pair of UTF-16 surrogate characters.
SDKs
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
Boolean CFStringGetSurrogatePairForLongCharacter(UTF32Char character, Uni Char *surrogates);
Parameters
character
A UTF-32 character.
surrogates
A buffer to contain the returned surrogate pair.
The buffer must have space for at least 2 UTF-16 characters.
Return Value
true
if character
is mapped to a surrogate pair, otherwise false
.