API:System.SysUtils.TUnicodeEncoding.GetChars

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

function GetChars(Bytes: PByte; ByteCount: Integer; Chars: PChar; CharCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetChars(System::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetChars(Bytes); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline System::DynamicArray<System::WideChar> __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall  GetChars(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const int Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall  GetChars(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount, const System::DynamicArray<System::WideChar> Chars, int CharIndex){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount, Chars, CharIndex); }

プロパティ

種類 可視性 ソース ユニット
function
class protected
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TUnicodeEncoding

説明

バイト セットを文字セットにデコードします。

System.SysUtils.TUnicodeEncoding.GetChars は System.SysUtils.TEncoding.GetChars を継承しています。以下の内容はすべて System.SysUtils.TEncoding.GetChars を参照しています。

バイト セットを文字セットにデコードします。

TEncoding.GetChars は、Bytes をデコードして文字を生成します。

Bytes は、バイト ポインタかバイト配列です。

ByteIndex は、デコードする最初のバイトを指定します。 指定がないと、インデックスは 0 です。

ByteCount は、デコードするバイト数を指定します。 この指定がない場合は、すべてのバイトがデコードされます。

Chars は、デコードされた文字の送り先を示すポインタです。

CharIndex は、Chars でどこから結果を書き込み始めるかを示します。

戻り値は、デコードされた文字の文字配列、またはデコードされた文字数のいずれかです。

関連項目


コード サンプル