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(Winapi::Windows::PByte Bytes, int ByteCount, System::WideChar * Chars, int CharCount)/* overload */;
inline TCharArray __fastcall  GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High){ return TEncoding::GetChars(Bytes, Bytes_High); }
inline TCharArray __fastcall  GetChars(const TBytes Bytes){ return TEncoding::GetChars(Bytes); }
inline TCharArray __fastcall  GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline TCharArray __fastcall  GetChars(const TBytes Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount); }
inline int __fastcall  GetChars(const System::Byte *Bytes, const System::NativeInt Bytes_High, int ByteIndex, int ByteCount, const System::WideChar *Chars, const System::NativeInt Chars_High, int CharIndex){ return TEncoding::GetChars(Bytes, Bytes_High, ByteIndex, ByteCount, Chars, Chars_High, CharIndex); }
inline int __fastcall  GetChars(const TBytes Bytes, int ByteIndex, int ByteCount, const TCharArray Chars, int CharIndex){ return TEncoding::GetChars(Bytes, ByteIndex, ByteCount, Chars, CharIndex); }

プロパティ

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

説明

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

GetChars は、Bytes をデコードしていくつかの文字を生成します。GetChars メソッドで利用できるパラメータとその説明を以下の表に示します。



パラメータ 説明

Bytes

バイト ポインタまたはバイト配列。

ByteCount

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

Chars

デコードされた文字の保存先を指すポインタ。

CharCount

保存する最大文字数を指定します。



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

関連項目