System.Character.IsSurrogatePair

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsSurrogatePair(const HighSurrogate, LowSurrogate: Char): Boolean;
function IsSurrogatePair(const S: string; Index: Integer): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsSurrogatePair _DEPRECATED_ATTRIBUTE1("Use TCharHelper") (const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Character.pas
System.Character.hpp
System.Character System.Character

Description

Warning: IsSurrogatePair is deprecated. Please use TCharHelper.IsSurrogatePair.

Determines whether characters are a valid surrogate pair in the Unicode specifications.

This function is overloaded.

Returns true if HighSurrogate 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