System.Character.TCharHelper.IsSurrogate
Delphi
function IsSurrogate: Boolean; overload; inline;
class function IsSurrogate(const S: string; Index: Integer): Boolean; overload; static;
class function IsSurrogate(Surrogate: UCS4Char): Boolean; overload; inline; static;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Character.pas | System.Character | TCharHelper |
Description
Determines whether a UTF-16 character is defined as a surrogate in the Unicode specifications.
This method is overloaded:
- Returns True if the character is defined as a surrogate in the Unicode specifications.
- Returns True if the character at
Index
in stringS
is defined as a surrogate in the Unicode specifications. - Returns True if the UCS4Char is defined as a surrogate in the Unicode specifications.