Sign in Join
FPDoc Onlineexperiment

UnicodeIsHighSurrogate function

In unit unicodedata

Check if a UTF16 character is the high character in a surrogate pair.

Declaration

pascal
function UnicodeIsHighSurrogate(const AValue: UnicodeChar): Boolean

Arguments

AValue

UTF16 character to check.

Function result

True if AValue forms the high character of a surrogate pair.

Description

UnicodeIsHighSurrogate checks whether AValue is a valid high character of a surrogate pair, and returns True if this is the case. It does this by checking whether the values are within the bounds for high characters in surrogate pairs.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.