System.Character.TCharHelper.IsSurrogatePair

From RAD Studio API Documentation
Jump to: navigation, search

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 string S is a surrogate pair in the Unicode specifications.

See Also