System.Character.TCharHelper.IsSurrogatePair
Delphi
class function IsSurrogatePair(const HighSurrogate, LowSurrogate: Char): Boolean; overload; inline; static;
class function IsSurrogatePair(const S: string; Index: Integer): Boolean; overload; static;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Character.pas | System.Character | TCharHelper |
Description
Determines whether characters are a valid surrogate pair in the Unicode specifications.
This function is overloaded:
- Returns True if HighSurrogate and LowSurrogate compose a valid surrogate pair in the Unicode specifications.
- Returns True if the UTF-16 character at
Index
of stringS
is a surrogate pair in the Unicode specifications.