[Overview][Resource strings][Constants][Types][Procedures and functions][Index] |
Check if a pair of UTF16 encoded characters is a valid surrogate pair.
Source position: unicodedata.pas line 359
function UnicodeIsSurrogatePair( |
const AHighSurrogate: UnicodeChar; |
const ALowSurrogate: UnicodeChar |
):Boolean; |
AHighSurrogate |
|
High character in the surrogate pair |
ALowSurrogate |
|
Low character in the surrogate pair |
True if AHighSurrogate,ALowSurrogate are a valid surrogate pair
UnicodeIsSurrogatePair checks whether AHighSurrogate,ALowSurrogate constitute a valid surrogate pair, and returns True if this is the case. It does this by checking whether the values are within the bounds for high and low surrogate pairs.
|
Convert UCS4 to UNicodeChar |
|
|
Encode unicode UTF16 surrogate pair to UCS4 character |
|
|
Check if a UTF16 character is the high character in a surrogate pair. |
|
|
Check if a UTF16 character is the low character in a surrogate pair. |