Contents

CFStringGetSurrogatePairForLongCharacter(_:_:)

Maps a given UTF-32 character to a pair of UTF-16 surrogate characters.

Declaration

func CFStringGetSurrogatePairForLongCharacter(_ character: UTF32Char, _ surrogates: UnsafeMutablePointer<UniChar>!) -> Bool

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.

See Also

Managing Surrogates