System.Character.TCharacter.IsSurrogatePair
Delphi
class function IsSurrogatePair(const HighSurrogate, LowSurrogate: Char): Boolean; overload; inline; static;
class function IsSurrogatePair(const S: string; Index: Integer): Boolean; overload; inline; static;
C++
static bool __fastcall IsSurrogatePair(const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;
static bool __fastcall IsSurrogatePair(const System::UnicodeString S, int Index)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Character.pas System.Character.hpp |
System.Character | TCharacter |
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 Index of string S is a surrogate pair in the Unicode specifications.
See Also
Code Examples