RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCharacter.IsSurrogatePair Method (Char, Char)

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

Pascal
class function IsSurrogatePair(const HighSurrogate: Char; const LowSurrogate: Char): Boolean; overload;
class function IsSurrogatePair(const S: string; Index: Integer): Boolean; overload; static;
C++
__fastcall Boolean IsSurrogatePair(const Char HighSurrogate, const Char LowSurrogate);
static __fastcall Boolean IsSurrogatePair(const AnsiString S, int Index);

This function is overloaded. 

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!