RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Character.IsSurrogatePair Function

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

Pascal
function IsSurrogatePair(const HighSurrogate: Char; const LowSurrogate: Char): Boolean; overload;
function IsSurrogatePair(const S: string; Index: Integer): Boolean; overload;
C++
Boolean IsSurrogatePair(const Char HighSurrogate, const Char LowSurrogate);
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!