System.Character.TCharacter.IsSurrogatePair
Delphi
class function IsSurrogatePair(const HighSurrogate, LowSurrogate: Char): Boolean; overload; inline; static;
class function IsSurrogatePair(const S: string; Index: Integer): Boolean; overload; inline; static;
C++
static bool __fastcall IsSurrogatePair(const System::WideChar HighSurrogate, const System::WideChar LowSurrogate)/* overload */;
static bool __fastcall IsSurrogatePair(const System::UnicodeString S, int Index)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Character.pas System.Character.hpp |
System.Character | TCharacter |
説明
文字が Unicode 仕様における有効なサロゲート ペアかどうかを判定します。
このメソッドはオーバーロード(多重定義)されています。
'HighSurrogate'LowSurrogate が Unicode 仕様における有効なサロゲート ペアの場合は true を返します。
文字列 S 内のインデックス Index に位置する UTF-16 文字が Unicode 仕様におけるサロゲート ペアの場合は、true を返します。