API:System.SysUtils.TUnicodeEncoding.GetCharCount

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

Delphi

function GetCharCount(Bytes: PByte; ByteCount: Integer): Integer; overload; override;

C++

virtual int __fastcall GetCharCount(System::PByte Bytes, int ByteCount)/* overload */;
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High){ return TEncoding::GetCharCount(Bytes, Bytes_High); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes){ return TEncoding::GetCharCount(Bytes); }
inline int __fastcall  GetCharCount(const System::Byte *Bytes, const int Bytes_High, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, Bytes_High, ByteIndex, ByteCount); }
inline int __fastcall  GetCharCount(const System::DynamicArray<System::Byte> Bytes, int ByteIndex, int ByteCount){ return TEncoding::GetCharCount(Bytes, ByteIndex, ByteCount); }

プロパティ

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

説明

一連のバイトをデコードして生成される文字数を計算します。

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

一連のバイトをデコードして生成される文字数を計算します。

TEncoding.GetCharCount は、Bytes をデコードして生成される文字数を計算します。

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

ByteCount パラメータには、デコードするバイト数を指定します。

戻り値 は、デコードされた文字数です。

関連項目