RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Character.IsSurrogate Function

Determines whether a UTF-16 character is defined as a surrogate in the Unicode specifications.

Pascal
function IsSurrogate(Surrogate: Char): Boolean; overload;
function IsSurrogate(const S: string; Index: Integer): Boolean; overload;
C++
Boolean IsSurrogate(Char Surrogate);
Boolean IsSurrogate(const AnsiString S, int Index);

Returns true if the UTF-16 character is defined as a surrogate in the Unicode specifications. 

 

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