Skip to content

ToUCS4

Encode unicode UTF16 surrogate pair to UCS4 character

Declaration

Source position: unicodedata.pas line 475

  function ToUCS4(const AHighS: UnicodeChar; const ALowS: UnicodeChar)
                  : UCS4Char;

Description

ToUCS4 converts set of unicode (surrogate pair) characters encoded in UTF16: AHighS, ALowS to a UCS4 encoded unicode character.

See also

Name Description
FromUCS4 Convert UCS4 to UNicodeChar
UnicodeIsHighSurrogate Check if a UTF16 character is the high character in a surrogate pair.
UnicodeIsLowSurrogate Check if a UTF16 character is the low character in a surrogate pair.
UnicodeIsSurrogatePair Check if a pair of UTF16 encoded characters is a valid surrogate pair.